Skip to main content

Notifications

Power Automate - Using Flows
Answered

two different expiration dates to send email notifications.

(0) ShareShare
ReportReport
Posted on by 379

Hello everyone! I need to create a flow that sends email notifications when pads expire, and Battery expire. before 30 days reminder, I was trying to follow some examples but not luck! I really appreciate if someone can help me on this matter, Thank You 🙂

  • lcdelgado Profile Picture
    lcdelgado 379 on at
    Re: two different expiration dates to send email notifications.

    Hello! Can you show me your flow? I'm having trouble doing mine here 🙄, thank in advance🙂

  • Nived_Nambiar Profile Picture
    Nived_Nambiar 17,105 on at
    Re: two different expiration dates to send email notifications.

    Hi @lcdelgado 

     

    Glad to know it helped you 

     

    You can make changes in flow and expression accordingly as per your list ☺️

  • lcdelgado Profile Picture
    lcdelgado 379 on at
    Re: two different expiration dates to send email notifications.

    This is much better! I need to change my list, Thank you 😊

  • Verified answer
    Nived_Nambiar Profile Picture
    Nived_Nambiar 17,105 on at
    Re: two different expiration dates to send email notifications.

    Hi @lcdelgado 

     

    For easy explanation, i have developed a sample flow along with a list (which can be considered as AED list)

    List

    Nived_Nambiar_0-1680108835436.png

     

    It has two products with their respective expiration date.

     

    Now the flow is designed like this 

    Nived_Nambiar_1-1680108889262.png

     

     

    Let's go through each step one by one, 

     

    1. Use get items to get all items from AED list [ remember, by default, get item can pull upto 100 items by default, but you can change via trigger settings :)]

     

    2. Next loop through each item, inside the loop, follow below steps 

        

        2a. Use condition with condition like below

    Nived_Nambiar_2-1680109035386.png

     

    expression: 

    div(sub(ticks(formatDateTime(items('Apply_to_each')?['ExpiryDate'])),ticks(formatDateTime(utcNow(),'yyyy-MM-dd'))),864000000000)
     
    this expression calculates the difference between dates in terms of days
    if it is equal to 30, in yes branch we can set to send an email. 
     
    Nived_Nambiar_4-1680109199405.png

     

     
    Email format i have used 
     
    Nived_Nambiar_3-1680109116241.png

     

     

    Nived_Nambiar_5-1680109225304.png

     

    So by single flow you can send expiration emails for different products 🙂

     

     

    Hope this helps 🙂

    Mark it as solution if it resolves your query

  • lcdelgado Profile Picture
    lcdelgado 379 on at
    Re: two different expiration dates to send email notifications.

    You couldn't have explained it better 👍

  • Nived_Nambiar Profile Picture
    Nived_Nambiar 17,105 on at
    Re: two different expiration dates to send email notifications.

    So just to confirm,

     

    You have AED list in sharepoint having different items in that where each item represent each component, 

    each component has an expiration date and you need to send an email when the expiration date is 30 days from today's date

     

    Let me know if i am right or wrong 🙂

  • lcdelgado Profile Picture
    lcdelgado 379 on at
    Re: two different expiration dates to send email notifications.

    well I'm not sure if I have to do separate or can be together in just one flow.

  • Nived_Nambiar Profile Picture
    Nived_Nambiar 17,105 on at
    Re: two different expiration dates to send email notifications.

    So for every part, you need to send a seperate expiration reminder mail ?

     

  • lcdelgado Profile Picture
    lcdelgado 379 on at
    Re: two different expiration dates to send email notifications.

    sure, I have a AED list inspection, we should use this list to do an inspection of all the AED equipment we have, that's why I have more than one expiration dates because the AED have multiple pieces to inspect like pads and battery.

  • Nived_Nambiar Profile Picture
    Nived_Nambiar 17,105 on at
    Re: two different expiration dates to send email notifications.

    Hi @lcdelgado 

     

    Could you tell me more about the usecase which you are automating ?

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard

Featured topics

Restore a deleted flow