Flow designer - How to determine if a trigger is insert or update

reginabautista
Kilo Sage

Hi guys,

In flow designer, my trigger is Created or Updated. I would like to post something in the work notes depending on what's been triggered.

Example:

If insert/create = add vendor incident number to the work notes

If update = do nothing

 

Thanks in advance

Regina

1 ACCEPTED SOLUTION

Kieran Anson
Kilo Patron

You could use an IF statement and use the sys_mod_count field to determine if it's a creation as the field will be 0 on creation.

View solution in original post

3 REPLIES 3

Kieran Anson
Kilo Patron

You could use an IF statement and use the sys_mod_count field to determine if it's a creation as the field will be 0 on creation.

Why didn't I think of that!

Thanks Kieran, worked like a charm 🙂

Ankur Bawiskar
Tera Patron
Tera Patron

@reginabautista 

As per your question it seems you want to run flow only during insertion since you want to do nothing when it's an update.

If you only want flow to run during insertion

Flow Trigger - Record Created

Regards
Ankur

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