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 Send an Email w...
Power Automate
Unanswered

How to Send an Email when a Person or Group is added to a SharePoint List?

(0) ShareShare
ReportReport
Posted on by 45

Hi there,

 

I had a workflow that was working for the better part of a year that just... stopped working entirely. (It would get caught in infinite loops, sending multiple emails per second, despite Flow Checker having no indication that this might happen) So after trying everything, I am attempting to rebuild. 

 

What I want is this: When a user puts in a name into a column (data type: Person or Group) on a SP List, to send an email to that person, one time. The way I currently have it is a hidden column that is also a Person or Group, with the logic being that if an Item is Modified and the two columns don't match, then send an email and update the hidden column to match the original column so it doesn't fire off every time. 

lundboej_0-1629383782247.png

 

One new thing I noticed is that the flow is forcing me to Select an output from previous steps, something that wasn't forced on me when I built this last fall. Could that be the problem? 

 

The current behavior: Every flow run will be "Successful" but no emails send because the condition turns out false: 

lundboej_1-1629384255712.png

Any help would be appreciated. I'm at my wit's end. Thank you

 

Categories:
I have the same question (0)
  • eliotcole Profile Picture
    4,363 Moderator on at

    Well, it might loop if (and I may have misread) you have the flow acting on a create/modified trigger, then the flow is updating the item. Because if that's the case, it's going to trigger it again, isn't it?

     

    Again, I could be wrong.

     

    I would advise removing the field comparison part in the Condition action, it seems like it's not doing you any favours.

     

    Speaking generally, and if there is a requirement to authenticate / check / something whether or not they're OK to receive the email, why not:

    1. List Authenticated Users Separately - Keep a separate list of folks that are authorised (or whatever the criteria is), for this example I'll call it userList.
    2. Get items from userList - So run a Get items action on the new list of people.
    3. Filter Authenticated Users By Entered User - So your filter is a kind of condition, as anything over 0 results means they're good to go.
    4. Condition on Filter length() Greater than 0 - If there are any results for the person in the list, there will be more than 0 items in the Filter action.
      1. Yes Branch - Send Email
      2. No Branch - Whatevs, innit. 😉

     

    For step #3 you could (and should) do this in the ODATA filter on step #2. That will save a flow action, and shorten the data retrieved. However use a filter first, to get the logic squared out in your head.


    I know that's general speaking, but hopefully it can help.

  • lundboej Profile Picture
    45 on at

    Thanks! I'll test these out.

     

    -Erik 

  • lundboej Profile Picture
    45 on at

    Question - if the list of users could be the entire Outlook address book, how would you get Get Items to recognize that?

  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @lundboej 

    If your goal is to take action/send an email only when the person or group column has changed, there is an easy way - see my example below.  My person or group column is called Employee.  The Flow will only run when the item has been modified.

    image.pngimage.png

  • lundboej Profile Picture
    45 on at

    Thank you so much, Scott! That seemed to work for my purposes 🙂 

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard