cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Post request to Power automate

Christopher
Level 5

I am attempting to send a post request from Blue Prism to our power automate platform, but I am encountering some difficulties. While the request works perfectly fine in Postman, I am uncertain as to why Blue Prism is unable to successfully send the same request.

I have attached screenshots containing information from both Postman and Blue Prism. Despite making some changes to the headers to resolve errors, I am now receiving a generic Blue Prism error message stating that an object reference is not set to an instance of an object.

If anyone has any insights or ideas on how to resolve this issue, I would greatly appreciate it.

10 REPLIES 10

harish.m
Level 12

Hi christopher

Not sure whether you are using the latest utility  http vbo.  I recommend to download the vbo from digital exchange.

https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---http

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

@Christopher

Can you try like below.  I am assuming you only need to pass URL parameters and the Body is blank.
The URL params can be set in the Address URL as shown in the screenshot.
35477.png

Christopher
Level 5

So after a little more adjustments and updating BO (Thank you Harish)

we get a more detailed error message:

The remote server returned an error: (411) Length Required


Which indicates that we are missing that header in the collection, i have tried every combination of 'Content length' 'ContentLength' and so on and giving it the value 0 which i can see is the correct thing, but i get the error 411 every time.



harish.m
Level 12

Hello christopher

You can try the action shashank kumar mentioned.

I had very  good success rate using that action.

Also if you want to still  try to understand and work around for 411 error check the below article.

https://kinsta.com/knowledgebase/411-length-required/

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

Christopher
Level 5

Hi,

Both actions give the same error, i do understand the meaning of the content-length header, it is also sent in the postman request with a value of 0, but blue prism will not accept it.

I believe setting the Content-Type to blank should resolve the error as there is no Body.

Christopher
Level 5

Still getting same errors, been trying all variants of the headers and so on.
Creating a ticket for it, they must have a proper explanation what is needed to make that request work instead of a generic error.

harish.m
Level 12

Hi christopher,

Did you get chance to try web api in system tab?
I dont think it will give any different result but that is some thing i would try.

----------------------- If I answered your query. Please mark it as the "Best Answer" [FirstName] [LastName] [Designation] [JobTitle] [City] [State] [Phone]

ewilson
Staff
Staff

@Christopher 

One thing I'd recommend is downloading a copy of Fiddler and then run both your Postman and BP tests again while Fiddler captures the full network traffic. Then we should be able to see a good comparison of all the headers that are being included against both requests. I typically use Fiddler Classic.

Cheers,
Eric