cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use POST action of Function for Utility - HTTP - 6.10.4

ManishRaw
Level 7
Hi Team,

While using the action POST from the newly updated utility Function for Utility - HTTP - 6.10.4

If we use more than one row in Post Data collection then only the first row is picked up while creating the body of the request.
5762.png
Is anyone else also facing the same issue?

The final call ends up in the below error:
5763.png



------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------
2 REPLIES 2

ewilson
Staff
Staff
Hello @Manish Rawat,

​After reviewing the Code stage within the Post action, it seems a single row of the input Collection is by design. What the action is doing is taking multiple column values, from the first and only row, URL encoding them, and then concatenating them together as Post body which are of the form:

Name1=Value1&Name2=Value2&Name3=Value3&....

You can read more about Post body parameters here.

Based on the response code, the request is making it to the server, the server accepts it, but then the server throws an internal error (code 500) while processing the data. So the question is, what does the server expect as far as the data is concerned? It looks like you're trying to retrieve an access token. Does the server expect the supplied data to be URL encoded? 

Cheers,

------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Hi @ewilson,

Thanks for your response.

I will try and check by creating a single row and passing the value.

As far as the supplied data is concerned the Server expects the above 4 fields mentioned in the collection with their respective value. The respective Postman curl request looks like this:
5758.png
Also the URL encoding as per Content-Type is application/x-www-form-urlencoded


------------------------------
Manish Rawat
Project Manager
Mercer
New Delhi
------------------------------