on 2022 Apr 20 9:54 AM
Dear Team,
Seeking your assistance on resolving the issue. I am trying to upload a pdf file in the Document Management Service (DMS). After i ran the custom script containing the js, it went through and I was able to view the result via POSTMAN. However the actual document was not inside the folder, its just a name and no mimetype "application/pdf" referring to file uploaded
As per DMS api reference, it only accepts uploading file in "binary" format. With that said, is there a way in iRPA to hold and convert the pdf file that I am uploading in Binary format prior performing the call? Or do you have other way of performing the call in able for the custom scripting to carry the file to be uploaded in DMS. Appreciate if you could help me on this.
See attached screenshots:
DMS API REFERENCE: https://api.sap.com/api/CreateDocumentApi/resource
Request clarification before answering.
Hello vwairpaph ,
The DMS endpoint should also accept uploaded file through form data. In this case, I recommend you to follow the Web Services Best Practices sample in the store (open it through your Factory in order to download it).
If you prefer to send binary data, you can use the Read File activtiy with binary encoding to have the content of your PDF file in binary.
Let me know if you have further questions.
Thanks a lot and best regards,
Baptiste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
33 | |
9 | |
8 | |
8 | |
7 | |
7 | |
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.