Skip to main content

Notifications

Power Automate - Building Flows
Answered

Email notifications

(0) ShareShare
ReportReport
Posted on by 108
I have a couple of Power Automate flows that send email notifications to employees and I was wondering how do you handle email notifications when a person is on leave or no longer with the organization? The flow won't fail since the notification is sent.
 
Like I said, the notification is going out but it's just sitting in an InBox that won't be looked at. I don't have a crystal ball to know when a person has left the organization or is on leave so I can modify the notification to send it to someone else so I'm wondering if I am missing something basic here when creating a flow?
 
What is your best practice to deal with a situation like this?
 
Thank you
  • Ann_DAS Profile Picture
    Ann_DAS 108 on at
    Email notifications
    Thanks so much for the help - I am definitely going to use these two suggestions.
  • Verified answer
    Sayan Profile Picture
    Sayan 694 on at
    Email notifications
    Hello @Ann_DAS You can check whether a user is in the organization by following these steps:

    1. Use the Get user profile (V2) action to retrieve the user's details.

    2. Use a Condition and apply the accountEnabled function to check whether the account is active. 



    3.  
     
     
     
    This will give true or false then you can use it for further steps.
     

    To check whether an employee is on leave:

    1. Determine if there is a SharePoint list or another system that tracks employee leave.
    2. Access the leave data from the system.
    3. Use a Condition to check the leave status and proceed accordingly.
    Also you can check the blog of @narayan225​​​​​​​
     
     
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     

    If my suggestion helps you, please gives it a Like and Marks as a Solution. Which motivates to solve more problems.

     

    Thanks,

    Sayan Patra

    RPA Developer

    LinkedIn URL: (2) Sayan Patra | LinkedIn

  • narayan225 Profile Picture
    narayan225 2,390 on at
    Email notifications
    @Ann_DAS You can do this by checking the user mailbox mailtip as explained in the following article:
     
    Hope this helps.
    Cheers!

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,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard