on 2022 Jul 29 8:47 AM
Dear Team,
Seeking your assistance on resolving the issue. I am trying to upload a pdf file in the Document Management Service (DMS).
I am getting Response code 400 (Bad Request) error.
please find below the screenshot of Script and error.
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.
Any information on this is highly appreciated.
Thanks,
Ankit Kumar
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I don't know DMS but have you tried the same using Postman? If your web options are ok they should be working from postman too. I always check my requests in postman. This is always a confirmation that the request is valid.
After the form data add this attribute:
readFileAsBufferToBody: filePathyou might also want to add to your headers:'Accept': 'application/json', 'Content-Type': 'application/octet-stream'Let me know if it helpedYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
9 | |
8 | |
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.