5 Business days using flow designer

sailor_moon
Tera Contributor

How to add 5 business days using flow designer? It should auto populate the next contact date once I run test. Please help me. Thank you!

find_real_file.png

find_real_file.png

2 REPLIES 2

Muhammad Khan
Mega Sage
Mega Sage

Hi, Sha,

 

Try

businessDays.addDaysUTC(5);

return businessDays;

 

 

Hopefully, this will resolve your query.

Maik Skoddow
Tera Patron
Tera Patron

Hi @Sha 

unfortunately it is not done by just adding 5 days as proposed by another user here as I guess you want to exclude weekends and holidays, right? If so you need a predefined schedule with that excludes. 

Unfortunately ServiceNow does not offer for Flows a function to consider schedules until now but there is an article which describes a custom action to deal with business days and schedules. Maybe it helps: https://community.servicenow.com/community?id=community_article&sys_id=79f51f7bdbc2109066f1d9d968961...

Maik