Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to add work anniversary number when sending automated email via power automate

(0) ShareShare
ReportReport
Posted on by 95

Hello

 

I am looking to send automated email to my team members with the number

eg: happy 1st work anniversary, happy 2nd work anniversray etc

 

Is there a way to add number also in the body of the email

The tutorials i saw so far is not having number

Its just wishing them a happy work anniversary

  • Verified answer
    ArchitectMadhan Profile Picture
    1,580 on at
    Re: How to add work anniversary number when sending automated email via power automate

    Hi @aparnaa ,

    Usually we can use Compose and Variable to get the difference in the year and store it in Variable that can be further used in the email.  Here is the link that has steps to find the difference between years.

    https://powerusers.microsoft.com/t5/General-Power-Automate/Getting-years-between-two-dates/td-p/815131

     

    Please accept it as a solution and give thumbs up, if it works for you.

  • aparnaa Profile Picture
    95 on at
    Re: How to add work anniversary number when sending automated email via power automate

    @ArchitectMadhan 

     

    Thank you for your guidance

    I have been able to progress after you suggestions

     

    I checked https://debajmecrm.com/how-to-get-year-month-and-day-in-various-formats-from-a-date-in-power-automat...

     

    However i am not sure how to subtract 2 integers.

    Request your guidance 

     

    I am saving my Date of Joining in DOJ field which is a date field

    I am looking to subtract this year - DOJ's year and save them in an integer and add them in the email body

     

  • ArchitectMadhan Profile Picture
    1,580 on at
    Re: How to add work anniversary number when sending automated email via power automate

    Hi @aparnaa ,

     

    If the above solution is helpful for your scenario, please accept it as solution by clicking the button, so that it will be useful for others who come up similar issues.

     

    Thanks,

    Madhan

  • ArchitectMadhan Profile Picture
    1,580 on at
    Re: How to add work anniversary number when sending automated email via power automate

    Hi @aparnaa ,

    If you are storing the Date Of Joining of an employee in the Employee record, then you can filter the Employee records daily based on the Date Of Joining (Day and Month) is equal to today (Day and Month) then it will give the list of employees who are celebrating the Work Anniversary for that day (This can be achieved using Scheduled Flow).

    For calculating the number of years you can use the variable of integer type, in which you can store the number of years by just subtracting the year of joining from current year. The below links might be useful for you while dealing with the dates in power automate.

    https://debajmecrm.com/how-to-get-year-month-and-day-in-various-formats-from-a-date-in-power-automate/

     

    https://powerusers.microsoft.com/t5/Building-Flows/Sending-Birthday-and-Work-Anniversary-Emails-to-employees-Issue/td-p/785112

     

    Please accept it as a solution and give thumbs up, if it works for you.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1