web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / due date needs to be o...
Power Automate
Unanswered

due date needs to be on workdays only

(0) ShareShare
ReportReport
Posted on by 28

Hellimage.pngo all,

 

I'm building a flow that creates a Planner task. User has 5 workdays to complete the task. So, therefor the due date most always be a workday. 

Who can help me with this?

 

Thanks!

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: due date needs to be on workdays only

    Hi @MargeNL,

     

    If is the due date always 5 days? If it always 5 days, you can add two more days at the End date field.

    If it not always 5 days, you can judge the start date whether is Thursday or Friday by using the dayOfWeek() function, if it is, add two more days, if not, no need to add.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • MargeNL Profile Picture
    28 on at
    Re: due date needs to be on workdays only

    Thank you. Sometimes things are so simpel!

  • MargeNL Profile Picture
    28 on at
    Re: due date needs to be on workdays only

    Hold on.

    I get the two extra days in case of 5 workdays.

     

    How do I use the dayOfWeek function in case of 3 workdays?

    Thanks for your patience.

  • v-litu-msft Profile Picture
    on at
    Re: due date needs to be on workdays only

    Hi @MargeNL,

     

    If the due date is 3 workdays, you can also judge the start day whether is Thursday or Friday.

    If it is, End date = Start Date + 5 days.

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • MargeNL Profile Picture
    28 on at
    Re: due date needs to be on workdays only

    Thank you, I understand that.

    What I would like to learn/know is how to have the Flow Judge whether the start day is a Thursday or Friday.

     

  • Verified answer
    MargeNL Profile Picture
    28 on at
    Re: due date needs to be on workdays only

    Yes! I think I worked it out.

     

    Used this: 

    if(or(equals(dayofweek(utcNow()),4),equals(dayofweek(utcNow()),5)),addDays(utcNow(),5),addDays(utcNow(),7))
     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard