Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Need to Capture API Response when Message has "Successful" or "Failed" in body.

Allen12
Tera Guru

I need to get the response from the body of "SUCCESS" or "FAILURE" so I can use the conditions to allow for split actions.

find_real_file.png

This is what we have so far.  It gives a response if communication fails, but I want a response when the transaction fails.

Here is the output log:

find_real_file.png

 

1 ACCEPTED SOLUTION

Allen12
Tera Guru

Here is the solution to my scenario:

I needed to use .includes to capture the "success" or "failure" response from the responseBody.

find_real_file.png

View solution in original post

6 REPLIES 6

Allen12
Tera Guru

Here is the solution to my scenario:

I needed to use .includes to capture the "success" or "failure" response from the responseBody.

find_real_file.png

SmitaH
Tera Contributor

How to achieve this via flow designer. I can capture success by adding a json parser step but how to capture error/failure response and update the triggered record? Thanks.