How to get response code and response message from action into subflow that called the action

Snehal13
Kilo Sage

I have a subflow that calls an action by sending 4 params. The action has REST step to make an API post call to a 3rd party platform and get a response - errorCode and message.

 

I wan to get this errorCode and message into my subflow so that the if else loop can close existing task record in errorCode is success or create an incident if errorCode is failure.

 

 

I have the action output variable defined from the script but unable to get the value in my if loop in subflow. What is missing

5 REPLIES 5

DanielCordick
Mega Patron
Mega Patron

What does your action look like? If you’re using a REST step, there’s no need to script anything. You can pass any of the output pills that are already defined in the rest step to your output.