Does anyone know how I can do this for Dynamic CRM? Using Javascript perhaps and what the syntax should be?
*This post is locked for comments
Hi,
Check if this Workflow Utility can help your requirement. It has good date calculation features.
[View:https://crmdatetimeworkflowutilities.codeplex.com/:750:50]
If I understood your question correctly, following JavaScript will return you the next business day date, assuming Monday to Friday are business days:
var d = new Date();
var nextBusinessDay;
switch (d.getDay()) {
case 5:
nextBusinessDay = new Date(d.setDate(d.getDate() + 3));
break;
case 6:
nextBusinessDay = new Date(d.setDate(d.getDate() + 2));
break;
default:
nextBusinessDay = new Date(d.setDate(d.getDate() + 1));
break;
}
Thanks but I think i need javascript or a workflow that would calcuate the next business date
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156