Hi Community members,
I have requirement where i need to send the status to process model, if My integrations fails. Can someone help me.
I have configured it this way,
Have created a PV of Error and its of type IntegrationError, but still if integration fails am getting blank value in Error (PV).
Discussion posts and replies are publicly visible
Usually the error you are looking for will be in the result, the integration worked but the Response is 400 or 500 something, so you could use that in a custom output using the response AC!
Yes Gabriele Camilli ..that is the case..Can you please help out with screenshot how to do that..
In custom output what am i supposed to pass
It quite depends on the integrations and which codes means success or error, but for 90% of cases you should create an output PV with this expression:
ac!result.statusCode<>200
if status is not 200 (Success Status Code) it is an error
Thanks Gabriele Camilli for helping out.
I have another case in which via integration am calling web API. In Result am getting the status code based on Web API(if web API is success am getting value as 200,for fail am getting value as 500). But i need to figure out how to display the Status code based on integration also(500 for success, 200 for failure).
Sorry, i didn't understand, can you rephrase?
Figured out ..thanks