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 emails to user by...
Power Automate
Answered

Send emails to user by unique values based on when item is modified

(0) ShareShare
ReportReport
Posted on by 95

Hello i am trying to send unique emails to multiple users with specific data when item has been modified on sharepoint will be the trigger

 

Following is my sample data 

Simsingh_0-1657563048080.png

i am able to get emails by unique values 

after following the following guide 

https://m.youtube.com/watch?v=BBB-4GzH5KE

 

however issue i am running into is along with emails i would like to retrieve the values for the users to include in body 

 

example 

 

send email to test@test.com 

body    FruitType Apple, Orange 

 

i tried multiple ways to combine the values however it's just returning one  raw data of first item 

 

Simsingh_1-1657563292914.png

 

 

as far as changes goes i am pulling by since versionID

Simsingh_0-1657563624653.png

 

 

with my current setup i am able to notify user however it's sending multiple emails to same user except for multiple emails i would like to combine into one email that has new unique values

Simsingh_3-1657563503909.png

 

any help will be appreciated  

Categories:
I have the same question (0)
  • Verified answer
    Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Simsingh  Once you got unique email use Apply to each action and pass compose 2 output in input value. Then inside loop use get items with filter query. use filter query with your email so that it will give you all unique email row items. Then use create html table action which you can use in send email action.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Simsingh Profile Picture
    95 on at

    @Hardesh15 thanks for helping out again :0

     

    so when i try to get items results are returning null

     

    this is what i am using for compose 

     

    union(variables('UniqueUsersEmails'),variables('UniqueUsersEmails'))
     
    Simsingh_0-1657567321456.png

     

     

    Simsingh_1-1657567522011.pngSimsingh_2-1657567573553.pngSimsingh_3-1657567629294.pngSimsingh_4-1657567644897.png

     

     

  • Simsingh Profile Picture
    95 on at

    @Hardesh15 when input the value manually of the email the results are what they are suppose to be and the table does get created

  • Verified answer
    Simsingh Profile Picture
    95 on at

    @Hardesh15 i found the issue the issue related to text not being simple text when using compose through union i had to use replace for quotes [] is there simple way to do it had to use compose 4 times to replace the string

    Simsingh_0-1657570950027.pngSimsingh_1-1657570996576.png

     

     

     

  • Simsingh Profile Picture
    95 on at

    thank you for your help 
    replace(replace(replace(string(outputs('Compose_2')),'"', ''),']', ''),'[', '')

  • Simsingh Profile Picture
    95 on at

    @Hardesh15 just noticed an issue when using get items since it's same data i am looping from where there are multiple records for same users so  when notifications are being sent out each user will have anywhere from 5-10 records  i am getting multiple notifications. My condition is based on column status any help will be appreciated 

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Simsingh  It means that you are looping send email action . Make sure that send email should be outside the loop.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • Simsingh Profile Picture
    95 on at

    @Hardesh15  this is the way i have it after condition of has column name updated is equals true then i have other conditions that follows please advise thanks 

     

    Simsingh_0-1657747906333.png

     

  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @Simsingh  Pls Share your complete flow. Message me.

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard