cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating Custom Client IDs in SAP Document Information Extraction Trial Version

sundar
Explorer
0 Kudos
1,275

I'm currently working on a requirement using the trial version of the SAP Document Information Extraction service through Postman. While extracting data, I noticed that I'm only getting the default client ID, but I need to create a custom client ID for my custom documents. Is there any way to achieve this with the trial version of SAP, or is there another method I can use?

To provide some context, I have set up my SAP BTP trial account and subscribed to the Document Information Extraction service. I navigated to the SAP BTP Cockpit, created a new service instance, and generated the service keys, which included the client ID and client secret required for authentication. I configured custom documents by specifying the document types and extraction rules in my service instance. Using the generated client ID and client secret in my Postman requests, I was able to authenticate and extract data from my custom documents. However, I'm still limited to the default client ID.

If anyone has experience with this or knows if it's possible to create a custom client ID with the trial version, or if there's another way to achieve this, I would greatly appreciate your insights. Additionally, if the trial version does not support this feature, would upgrading to a paid version provide the necessary flexibility and additional features to manage custom client IDs more effectively?

Accepted Solutions (1)

Accepted Solutions (1)

tobias_weller
Product and Topic Expert
Product and Topic Expert

Hi Sundar, 

On Trial you are limited to one client only, see Trial Limits
You should be able to delete the default client and create a different one instead in case you want to test the client creation.

Best regards,
Tobias

sundar
Explorer
0 Kudos

Hi Tobias,

Thank you for your response. I have deleted the default client ID and created a new client ID, but I am still unable to extract the documents from Postman with "documentType": "Custom". Could you please assist me with this issue?

Best regards,
Sundar

Answers (2)

Answers (2)

tobias_weller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sundar,

I just created a new trial account and followed your requested steps and it all works fine:

  • Go to swagger
  • Delete the default client
  • Create a new client
  • Go to Document Information Extraction UI
  • Notice that the newly created client is shown in the upper right corner
  • Create a new schema of document type custom and activate it after adding your fields
  • Go to documents and upload a document with your newly cretaed schema

Best regards,
Tobias

sundar
Explorer
0 Kudos

hello Tobias,

Thank you for your post. Almost everything is working fine for me, but I'm facing a different issue. While the Document Information Extraction UI is working perfectly and I'm getting the data, I'm encountering an error when using Postman. I've attached some screenshots for your review. Could you kindly take a look?
result of Document Information Extraction UIresult of Document Information Extraction UIerror from postmanerror from postmanlisted userslisted users

tobias_weller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sundar,
Based on the error message you posted, it seems like you used incorrect "option" in your POST request. The error message indicates that you used document type invoice and added field names, but instead you need to use the schema name you created.
options = {"schemaName":"Name of your schema","clientId":"your client id","documentType":"custom (the document type you used to create your schema)"}

Best regards
Tobias

tobias_weller
Product and Topic Expert
Product and Topic Expert
0 Kudos

<<duplicated>>

sundar
Explorer
0 Kudos

Hi Tobias,

Thank you for your suggestion. I tried using the schema name as you mentioned, but I am now facing a new issue. To help you understand better, I have changed the header field names in both the schema configuration and Postman. For your reference, I have attached a screenshot.

Best regards, Sundarpostman errorpostman errornew fieldsnew fields

tobias_weller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Sundar,
As I stated in my last reply, you need to add the schema name only and not the field names. Please refer to the options I posted in my previous reply as an example.

options = {"schemaName":"Name of your schema","clientId":"your client id","documentType":"custom (the document type you used to create your schema)"}


Best Tobias

sundar
Explorer
0 Kudos

Hello Tobias,

Thank you it is working

Regards 
Sundar

tobias_weller
Product and Topic Expert
Product and Topic Expert
0 Kudos

Could you describe the issue you are facing? Is it working in our UI? Did you specify the schema you want to use in addition to the document type?

sundar
Explorer
0 Kudos

I am currently working on a requirement using the trial version of the SAP Document Information Extraction service through Postman. My goal is to extract values from my custom documents using a custom client ID that I have created. However, I am facing some challenges and would appreciate any guidance or solutions.


**Issue:**
I am only able to use the default client ID. When I attempt to use the custom client ID, I am unable to extract the documents with the specified document type as "Custom".


**Steps Taken:**
1. Deleted the default client ID and created a new custom client ID.
2. Specified the schema and document type in the Postman request.

**Request for Assistance:**
- Is it possible to create and use a custom client ID with the trial version of SAP Document Information Extraction service?
- If the trial version does not support this feature, would upgrading to a paid version provide the necessary flexibility and additional features to manage custom client IDs more effectively?
- Any insights or solutions to resolve this issue would be greatly appreciated.

Thank you in advance for your help!