I have tried using form data module in postman to successfully upload the file to the target application. However, in the blue prism Web API services section - I am not able to successfully configure the API for upload.
The API documentation consumes the parameters as query params and use form-data to accept the file with multipart/form data and boundary established. Can you please guide me on how to go about setting this up in Blue Prism?
Thank you Abhilash M RPA Developer Lowe's Companies.
------------------------------ Abhilash M ------------------------------
If you can post a screenshot of your postman configuration that would be helpful. The Utility - HTTP has a specific action to deal with multipart. Have you tried that already?
For using the WebAPI you will have to set the params in the Body Template.
I have attached the snapshot. The URL is composed of several query params. The body is of type form-data which has 3 parameters and the parameter file is of type "file"
This setup works just fine. I need to figure out a way to apply similar functionality in BluePrism.
I did go through the thread you shared regarding params in Body Template- I have trouble with the fileValue param at the end. Currently the error Blue Prism throws with the setup Bimal suggested in the screenshot is:-
Internal : Unexpected error Error during Web API HTTP Request HTTP Status Code: 404 HTTP Response Content: {"timestamp":"2022-06-08 12:31:15","status":404,"error":"Not Found","message":"No message available","path":"/<<Request URL>>"}
Also I have not tried the HTTP Utility yet and if you could share more details on that which will be helpful. I only see a HTTP VBO but not the extended in the current setup. Do let me know if the standard one works just fine.
Thank you Abhilash M
------------------------------ Abhilash M ------------------------------
I have used the file meta data collection to include the key/value pair values used in postman under the form-data setup I have used the file meta data collection to only pass the file path as the other params (filename, fieldname and content type are optional) Could you please help me with the header content-type in this scenario?
Thank you Abhilash M
------------------------------ Abhilash M ------------------------------