cancel
Showing results for 
Search instead for 
Did you mean: 

SAP IRPA 2.0 (Cloud Studio) SAP Web Service Call _Upload File to Document Management Service API

arroyoweisson
Explorer
565

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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