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 Apps
Answered

email reminder

(0) ShareShare
ReportReport
Posted on by 640

Hello,

 

I'm trying to build a flow to send an email reminder to the manager and  Head. I'm using SQL Server as a database. 

Logic: 1) Send an email to the requestor's direct manager after 3 days of request. keep sending every 3 days until the request status changes to a different stage.

          2) Once the manager approves the request, the status changes to the "pending final approval". Send a reminder email to the Head if he does not approve within 3 days of manager approval. 

 

I'm using Powerapps for creating an approval request. 

 

Any suggestions? 

 

Thanks,

Omi

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    The only thing that I dont understand is why the 3 days..

    For that I would suggest that every day you run a flow and add a day to every item that has not been aproved.

    After that, you must see if it is  multiple of 3. 

    If yes, send the request and based on the response, approve.

     

    If not, dont send.

     

    I would use teams approvals for that

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

    My website!

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @omi18 

     

    We should use Power Automate for this requirement.

     

    Type: Scheduled Cloud Flow

    Frequency: Runs Every day

     

    Note: Power Automate can wait a maximum of 30 days after that flow will cancel automattically.

     

    I had a similar requirement and I used to verify the source if any other way approved completed as well. 

     

     

    Let me know, if any help on this to build.


    Thanks,
    Stalin - Learn To Illuminate

     

     

     

  • omi18 Profile Picture
    640 on at

    @Nogueira1306 ,

     

    3 days, because we think everyday reminder email will be too much for the managers and Head of the Dept. 

  • omi18 Profile Picture
    640 on at

    Hi @StalinPonnusamy ,

     

    Yes, I did try to build a flow, Maybe I'm missing something. Current process flow does not include power automate flow to the request of the approval process. everything is done using power apps.

     

    Thanks.

    Omi

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @omi18 

     

    It has a lot of steps. I hope you get the overall approach.

    • Get all SQL records where final approval not completed
    • Check Level 1 approval is completed or not
    • Calculate the Number of days
    • Calculate Mod Which determines to send email 3,6,9,12....
    • If Level1 is completed but not Level 2 then
      • Send 2nd level reminder email

     

    Overall steps.

    StalinPonnusamy_0-1644548502691.png

     

    Steps Expanded

    StalinPonnusamy_1-1644548536455.png

    StalinPonnusamy_2-1644548614172.png

     

    StalinPonnusamy_3-1644549054170.png

     

    StalinPonnusamy_4-1644549083074.png

     

    Formula used

    equals(items('Apply_to_each')?['Level1ApprovedOn'], null)
    
    div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(formatDateTime(items('Apply_to_each')?['SubmittedOn'],'yyyy-MM-dd'))),864000000000)
    
    
    mod(variables('Number Of Days'),3)

     

    I know it has a lot of steps. Reach me if any questions.


    Thanks,
    Stalin - Learn To Illuminate

  • omi18 Profile Picture
    640 on at

    Hi @StalinPonnusamy ,

     

    Thanks for the solution it works as expected. 

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 Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard