So I have this automation that sends web requests to Salesforce.
I need to send 2 requests, and extract some value from the response body of the second, however when I log the webresponse, it seems that it's still the response of the first request. Is this expected or I'm doing something wrong? As far as I know the webresponse is overwritten with each new request.
The requests are different, but the response is the first one, you can see by the timestapm:
Is there any other way to access the response body?
Without seeing the specifics of your entire rule...
For each Send Web Request action, have you enabled the option to wait before the rule proceeds:
Delay execution of subsequent rule actions until we've received a response for this web request
If not, please enable that and re-test.
Kind regards,
Bill
Thanks, Bill, this seems to be the fix. I reached out to Atlassian Support and they told me the same.
It's a miss from my side, as I enabled this for the first request, but forgot to check it for the second.
However I did add a delay, even 10 secs delay didn't seem to help (my entire rule executes for 6-7 secs, this includes the first request), so it's a mystery to me why the webresponse is not overwritten.
If anyone hits the same problem, I hope this helps them.
Best,
Gergana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.