Flow Designer Trigger

Annette Kitzmil
Tera Guru

Hello,

Can someone tell me if I am able to use a Create trigger when the status of the record is closed in a flow or is there a way that I can script a trigger?  I am trying to set a trigger on closed records that will retrieve attachments when applicable.  I am not quite certain of the way the design should look and feel, so any suggestions would be very much appreciated at well.

 

Thanks,

5 REPLIES 5

SanjivMeher
Kilo Patron
Kilo Patron

You can have a flow designer on Closed tickets too.

But the flow designer needs to be set to run on demand. And you need to call the flow designer from a UI action. Because unless there is an insert or update on record, the flow wont trigger. 


Please mark this response as correct or helpful if it assisted you with your question.

Hello - So I am not quite sure how to set the trigger to run on demand, would you give me a bit more detail as I am not seeing how that would be done with the flow trigger.

 

Thank you

So in your Flow, click on Add Trigger -> Run Once and put a date in past

SanjivMeher_3-1702579913492.png

Then add the required script.

Then create a UI action with executeFlow function as mentioned below to trigger the flow manually

https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_flowdesigner_utah_flo...

 

 


Please mark this response as correct or helpful if it assisted you with your question.

Hello @Annette Kitzmil ,

just adding to @SanjivMeher , you can create a subflow where the input is you record and add the logic there, and call it the same way in an UI action.
There is an option to write a scheduled job that executes daily and does what you want as well.

Hope that this helps you!

If the provided information answers your question, please consider marking it as Helpful and Accepting the Solution so other community users can find it faster.

All the Best,
Stefan