cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Custom Client IDs in SAP Document Information Extraction Trial Version

sundar
Explorer
0 Kudos
402

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?

View Entire Topic
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