Reputation: 181
I have a scenario where I will be making a third party API request to check if a particular set of data exists, however in the event that it doesn't the request returns a 404.
That's fine, and I can react accordingly using the "run after failure" condition in the logic app, however in the Overview of the logic app the entire run will be interpreted as a failure due to the 404 returned from that initial API request.
Is there any way I can instruct the logic app that a bad response from a particular request is acceptable? And shouldn't be interpreted as the entire logic app run being a fail?
Upvotes: 1
Views: 1556
Reputation: 566
You can add a decision or case action after the API request that will run both on success and failure of the API request.
Check the return code of the API request and use the terminate action to set the desired logic app result.
Upvotes: 0