flow designer trigger twice a week

Stefan7
Tera Contributor

is there a way to trigger a flow designer twice a week - let's say Tuesday and Thursday?

1 ACCEPTED SOLUTION

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

I'm not sure this will work, however here I've found some information:

https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_automatingapps_london_f...

Scripting Triggers

A flow executes when called in a server script, such as a Business Rule. To execute a flow from a script, call the sn_fd.Flow.startAsync() method. Refer to the Flow Designer API documentation for details and examples on how to execute a flow from a script.

You might be able to do that, give a try using the examples provided in the above documentation.

Use the below solution as example for triggering the Flow based on the Date().getDay() as per your need:

https://community.servicenow.com/community?id=community_question&sys_id=442017e5dbdcdbc01dcaf3231f96...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

View solution in original post

3 REPLIES 3

Chuck Tomasi
Tera Patron

There's no way to do this in Madrid. I heard something about a feature that would let you parse dates and other data pull transforms coming in a release in the near future, but in light of that, right now you can only select Weekly (on a specific day) or daily (at a specific time).

In New York, you could possibly take the target date and run a function on it to determine what day of the week is and do an if condition for the value you want, but i haven't played enough with the Fx yet to determine if that's a solid solution.

Another option is post your idea to the Idea Board (see the community top menu). Our product managers use that as input. 🙂

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi,

I'm not sure this will work, however here I've found some information:

https://developer.servicenow.com/app.do#!/training/article/app_store_learnv2_automatingapps_london_f...

Scripting Triggers

A flow executes when called in a server script, such as a Business Rule. To execute a flow from a script, call the sn_fd.Flow.startAsync() method. Refer to the Flow Designer API documentation for details and examples on how to execute a flow from a script.

You might be able to do that, give a try using the examples provided in the above documentation.

Use the below solution as example for triggering the Flow based on the Date().getDay() as per your need:

https://community.servicenow.com/community?id=community_question&sys_id=442017e5dbdcdbc01dcaf3231f96...

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Andrew Barnes -
ServiceNow Employee
ServiceNow Employee

Greetings Stefan,

 Flow designer doesn't support that option in the trigger settings. You can setup a scheduled job, which calls your flow, and have that flexibility.

-Andrew Barnes
Join me at Developer Blog