Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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?




10 REPLIES 10

Ankur Bawiskar
Tera Patron

@Debasis Pati 

So you make API call, you update the INC with correlation ID and you want to trigger flow when Correlation ID is updated?

I didn't get the clear picture

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

No @Ankur Bawiskar 
There are two scenarios incident create integration should call also if incident updates(some fields) only integration call should happen and update the record.

Now one flow i have done for creation and in the response i am bringing the id and setting it in the corelation id successfully.

Now i want to build a flow for update i created a flow and condition as (additional comments changes or state changes etc) which is fine i want to know now which all fields got changed so that accordingly i will build the payload.

Also i have the question can both of these flows can be clubbed into one as we have a record trigger condition as created or updated?

so basically i have two questions how i can get the changed fields which all got updated accordingly i have to create the update payload .
and the second question is if i can club both of these to create or update what all conditions need to be made so it will work fine or it's better to keep separate only?

@Debasis Pati 

better to separate out

1 flow for INC create and make API call and update Correlation ID

1 other flow when Record gets updated and make another API call

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Yes @Ankur Bawiskar ,

Fine with one more flow when updated and trigger condition when additional comment changes or state changes or other required fields in the trigger.

Now i want to get on time like what all fields got updated to create the payload dynamically

Hello @Ankur Bawiskar ,
the below are the fields when i have to trigger the update actually
state -
on hold reason
impact
urgency
Additional comments
Attachment
resolution note
resolution code
resolved_at