Select to view content in your preferred language

Send Web Request use response header as parameter

1382
5
Jump to solution
09-05-2023 06:34 PM
vtey_esriau
Occasional Contributor

Hi,

Is it possible to capture and use the response header to determine next step? Is it done via the output value somehow?

 

vtey_esriau_0-1693964056870.png

 

0 Kudos
1 Solution

Accepted Solutions
SamWest1
Esri Contributor

Hi Vtey,

So instead of pulling output values from the response body, you would like to pull information from the response headers? That is not a use case we've heard a lot about, so I am curious what sort of information you are looking at in the headers and how you are trying to route based on that.

If you just need to route based on the status code of the response, such as 200 for success, that is available as an output value, but the response headers are not currently accessible as output values.

View solution in original post

0 Kudos
5 Replies
SamWest1
Esri Contributor

Hi Vtey,

So instead of pulling output values from the response body, you would like to pull information from the response headers? That is not a use case we've heard a lot about, so I am curious what sort of information you are looking at in the headers and how you are trying to route based on that.

If you just need to route based on the status code of the response, such as 200 for success, that is available as an output value, but the response headers are not currently accessible as output values.

0 Kudos
vtey_esriau
Occasional Contributor

Hi Sam, my apologies, I should have read further down the documentation 🙂

That would work for me. 

vtey_esriau_0-1694041115781.png

 

0 Kudos
SamWest1
Esri Contributor

Glad to hear it!

0 Kudos
vtey_esriau
Occasional Contributor

Hi Sam,

Just to provide you with context why we need the header response,  We are planning to develop a solution using ArcGIS Online for a client. As custom GP isn't supported in ArcGIS Online, I am planning to replace that with Azure function.

Azure function has a timeout of 240s for http (can't be changed) hence we are looking at using durable function.

https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-p...

vtey_esriau_0-1694043007942.png

 

We need the "location" in the header to "poll".  However based on your response, I don't think we can do that.

Cheers

PalakPandey
Emerging Contributor

Hi, 

Hope you doing good.. I am currently trying to update feature using the Send Web Request which I see you were able to successfully achieve. Could you please help me with the syntax/snippet of the post request. The update feature works fine on the rest end point but fails in the Work flow. 

Any help would be highly appreciated.

Regards,
Palak

0 Kudos