How to get the next business day without weekends and public holiday

Dear all,

Good day.

I would need to send email to warehouse about delivery on daily basis.

it is done like today send email on tomorrow delivery.

If tomorrow is Sat then i will need to notify them for Monday delivery.

Or if it is holiday, then i will need to get next business day.

so how can i design the workflow so that it can do so?

Hope anyone can share the sample XAML file for this.

You can use an assign activity for a boolean variable with value like below.

DateTime.Today.AddDays(1).DayOfWeek = DayOfWeek.Saturday

It will return true if tomorrow is Saturday.

1 Like