I'm after some help with setting DUE DATE on a Task...
Task is created via Webservices, an d START DATE is the day of creation. I need the DUE DATE to be START DATE + 2 days (excluding weekends). Best way to do this via Workflow?
Thanks
n
Netsuite Tragic
09/14/2021, 10:26 PM
You can set due date with {datecreated}+2
As a pro tip you may need to consider more to take into account Thursday and Friday tasks which will have due dates on weekends.
a
AI1
09/15/2021, 1:58 AM
You can do with a semi-elaborate formula. First validate what day of the week the start date is on then add the proper days from there
CASE WHEN TO_CHAR({startdate}, ‘DW’) = ‘05’ THEN {startdate}+4 WHEN TO_CHAR({startdate}, ‘DW’) = ‘06’ THEN {startdate}+3 ELSE {startdate}+2 END
AI1
09/15/2021, 1:59 AM
I’ve run into issues with straight adding to date fields in workflows so you may get a formatting error
If so try ADDDAYS function instead of {startdate}+2 etc