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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trigger a mail before ...
Power Automate
Answered

Trigger a mail before due date

(0) ShareShare
ReportReport
Posted on by 6

I have a sharepoint column named due date, and I have to trigger 3 mails before the due date in the order: 1st-(due date-10 working days), 2nd- (due date-7 working days), 3rd- (due date-5 working days). Weekend have to be excluded from the 10, 7, 5 days subtracting only working days from due date.

How we can achieve this please let me know.

Categories:
  • Verified answer
    v-peijunz-msft Profile Picture
    Microsoft Employee on at

    Hi @ShivaniR25 

     

    Based on your description, I have made a simple test for your reference.

    Here is the flow:

    dayOfWeek(utcNow())
    @or(equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 12, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 9, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 5, 'yyyy-MM-dd')))
    @or(equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 14, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 9, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 7, 'yyyy-MM-dd')))
    @or(equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 14, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 11, 'yyyy-MM-dd')),equals(formatDateTime(item()?['DueDate'], 'yyyy-MM-dd'), addDays(utcNow(), 7, 'yyyy-MM-dd')))

    vpeijunzmsft_0-1682317619123.png

    vpeijunzmsft_1-1682317825106.png

    vpeijunzmsft_2-1682318056189.png

     

    Hope it helps.

     

    Best regards,

    Sylvia

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard