on 2024 Dec 13 11:53 AM
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?
Request clarification before answering.
Hi Sundar,
I just created a new trial account and followed your requested steps and it all works fine:
Best regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 UI
error from postman
listed users
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
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 error
new fields
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
User | Count |
---|---|
50 | |
10 | |
8 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.