You need to sign in to do that
Don't have an account?

Apex Trigger to update Task Due Date when falling on a weekend
We have several Workflow Rules that create Workflow Tasks x days later
than the Rule trigger date. We would like to create an Apex Trigger
that will automatically calculate the day of the week the new Task is
due on and if on a weekend, change the date to 2 day later.
I know it's possible to calculate Day of Week in a formula field thanks to this blog post.
I've already read the Apex Language Reference and created some simple Apex Triggers, but I just don't have enough experience working with Apex Triggers to know how to do this. Any help or samples would be greatly appreciated.
Thanks,
Matt
I know it's possible to calculate Day of Week in a formula field thanks to this blog post.
I've already read the Apex Language Reference and created some simple Apex Triggers, but I just don't have enough experience working with Apex Triggers to know how to do this. Any help or samples would be greatly appreciated.
Thanks,
Matt

We built a similar trigger for one of our clients, try this out:

Hay MKPartners.It is not working for Saturday.