Skip to main content

Notifications

Community site session details

Community site session details

Session Id : RC2FUFD9Dcezt8teN83G/U
Power Automate - Building Flows
Answered

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

Like (0) ShareShare
ReportReport
Posted on 28 Feb 2022 08:40:27 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 01 Mar 2022 at 09:52:38
    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 01 Mar 2022 at 06:09:40
    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 28 Feb 2022 at 17:07:19
    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 28 Feb 2022 at 15:22:16
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started