Flow designer update trigger conditions

Debasis Pati
Kilo Sage

Hello Team,

I have one outbound integration setup with one third-party tool.
Once a incident is created(and assignment group is x) the incident needs to be created on the third-party system .I have created a flow and got the response and did set the number into correlation id field successfully.

Now i want update as well if my incident gets updated then which value got updated accordingly dynamically i need to build the payload.(Also integration for this not trigger for all the fields update only some fields like state additional comments etc.)

Now if i created  a update flow one new then what conditions i should keep so that it wont go on loop and also i need to find which field/fields got updated if they need to be updated in the third party system then only i will trigger the integration otherwise not.

Also if both of these can be done in one flow or two flows needed i need help on the conditions of the flow what i should put so it won't go on loop and it should do the job as needed.

@Ankur Bawiskar any suggestions?




8 REPLIES 8

Tanushree Maiti
Kilo Patron
To pass a payload with input parameters, use a Flow action and invoke it from the flow. Once the response is received, check the response code in the main flow and proceed accordingly.
 
.A. Create the Custom Flow Action
  1. Define Action Inputs: Create an input variable  to receive data from the main flow.
  2. Add a REST Step: Use the REST Step (requires IntegrationHub) to configure your endpoint and HTTP method (e.g., POST).
  3. Map Input to Payload: In the REST step's Request Body, drag the payload_input data pill to send it as the payload.
  4. Define Action Outputs: Create an output variable (e.g., Status Code) for the overall action.
  5. Assign Response Code: In the Action Output section, map the Response Code data pill from the REST step to your status code output variable.
B. Call Flow Action from Main Flow
  1. Add Action: In your main flow, click Add an Action and select your custom action.
  2. Pass Payload: Provide the required input parameter (e.g., a stringified JSON or record data) into the action's input field.
  3. Handle Response:
    • Add an If logic block immediately after the action.
    • Use the status code data pill from your action as the condition (e.g., If status_code is 200).
    • Perform follow-up tasks, such as updating a record or logging an error, based on this code

Refer: https://www.youtube.com/watch?v=Jl7DXVdArIE

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hello Tanushree,
my question is not about how to do integration in flow designer my question is about the trigger conditions of the flows according to my requirement how i should tackle the conditions.

Use  "Look Up Records" to find necessary data for  which you want to trigger the automation i.e sending payload.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Hello Tanushree,
I want the flow to be triggered on some field changes only like additional comments state etc.
now i want to know after it triggers what all fields got updated and then i will trigger the update payload accordingly so i need to know what all fields got updated actually.