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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to add work annive...
Power Automate
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

Categories:
I have the same question (0)
  • ArchitectMadhan Profile Picture
    1,584 on at

    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.

     

  • ArchitectMadhan Profile Picture
    1,584 on at

    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

  • aparnaa Profile Picture
    95 on at

    @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

     

  • Verified answer
    ArchitectMadhan Profile Picture
    1,584 on at

    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.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard