on 05-11-2023 11:56 PM
Hi Experts
I would like to add attachments with API_CV_ATTACHMENT_SRV to sales orders from Sap Build Process Automation.
For this I have done some testing of the API from Postman and SAP gateway client.
Is it possible to use this API with postman or gateway client without using the "Select File" or "Add file" function?
What I see is that the attachment is displayed correctly when using the option.
I also tested the conversion to base64 but unfortunately the file does not open
I would like to point out that the Content = file path does not work when it is added in the header as indicated on the post.
Any help or hint would be highly appreciated. Thanks a lot in advance.
Regards
Abdoulaye
Hi abdoulaye.sangare ,
Kindly review this best practice content,
https://store.build.cloud.sap/store/05adaf4e-79a6-45f5-9f41-0eb14e512b96
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raghu,
Thank you for your help,
I managed to solve the problem with the instruction on page 110 - 11
Here is the solution
let url = "/sap/opu/odata/sap/API_CV_ATTACHMENT_SRV/AttachmentContentSet";var csrf = obj.headers['x-csrf-token'];auth.csrf = csrf;User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.