So I am trying to build my first Flow and need some help. I’m trying to call an API based on the response from another API.
Here’s the process:
Call 1st API
Read response and if the status say success, call the 2nd API.
The only way I can get it to work is to insert a delay after calling the 1st API. It works, but not ideal because the response may at times take longer than my delay I have set…
yeah I was gonna say just use an action script with a condition. If the first API returns a 200 for success or whatever, then have second api load based on the returning of that condition? Should be able to look at what is returned from the schema?
So using On Success on the first API does trigger the second API, but I don’t see anywhere that I can trigger it based on a certain value returned in the response of the 1st one.
There is a column in the Schema of the 1st API called “Status”. I need to trigger the 2nd API if the value in Status is success or failure.
Here is the response form the 1st API.
See that entry called Status? If that says “Success” I need to trigger the 2nd API.