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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send email to everyone...
Power Automate
Answered

Send email to everyone that ever modified a sharepoint list item

(0) ShareShare
ReportReport
Posted on by 42

Anyone know how to send an email to everyone that ever modified a sharepoint list item?

 

example. (includes created, I understand)

Person1 creates = Send email to Person1;

Person2 modifies = Send email to Person1;Person2;

Person1 modifies = Send email to Person1;Person2;

Person3 modifies = Send email to Person1;Person2;Person3;

etc, etc

 

Thanks.

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @jamesalspec ,

    Actually you can do this: 

    0. Initialize a variable EditorsEmails;

    1. Use a Send an HTTP request to SharePoint action: 

    Uri: _api/web/lists/GetByTitle('ListName')/items(ID)/Versions

    gabibalaban_0-1686124666933.png

    2. Use an Apply_to_each action:

    gabibalaban_3-1686125215912.png

    *select:  @{body('Send_an_HTTP_request_to_SharePoint')['d/results']}

    * value:  @{items('Apply_to_each')['Editor/Email']

     

    The result will be a string like: email1;email2;email3;email1;

    Even if an email address will be found multiple time in string Exchange Server will know how to manage it. 

     

    If you want a clear list with distinct email addresses of editors you can use a compose action after apply_to each:

    gabibalaban_4-1686125671995.png

     

    join(
     union(
     split(variables('EditorsMails'),';'),
     split(variables('EditorsMails'),';')
     ),
    ';')

     

    Hope it helps !

  • jamesalspec Profile Picture
    42 on at

    @gabibalaban 

    Thanks for the solution.  It fails at the HTTP request with Uri expression not valid.  I assumed it was 'ListName' that needed to be my list on SP, so I changed to 'CCR test' to align.  But this failed also.

     

    "The expression "web/lists/GetByTitle('ListName')/items(ID)/Versions" is not valid.

    "The expression "web/lists/GetByTitle('CCR Test')/items(ID)/Versions" is not valid.

     

    This solution makes sense to me, I'm just not familiar with the syntax.

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @jamesalspec ,

    You need to specify arecord ID, so please use a valid one:

    web/lists/GetByTitle('CCRTest')/items(10)/Versions

  • jamesalspec Profile Picture
    42 on at

    @gabibalaban 

    That worked.  Thanks for your help!

  • jamesalspec Profile Picture
    42 on at

    @gabibalaban 

    This may be outside the realm of Power Automate.  Could you advise how to remove repetitive emails in the string?

     

    For example, How could we make...

    Person1;Person1;Person1;Person1;Person1;Person1;Person2;Person3;Person3;

    into...

    Person1;Person2;Person3;

     

    Thanks.

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    I wrote it in my first post. please read it carefully until its end 😁 

  • jamesalspec Profile Picture
    42 on at

    @gabibalaban 

    Apologies.  I just didn't understand what "distinct email addresses" were.  Now I understand completely.  This will make it easier.  I was putting in a Condition to check if the string contained the email, then add or not.  I will use your method.  Thanks again!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard