cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jasong911
Level: Powered On

Get list items, de-duplicate "OwnerEmail" value, then email each owner?

Hi Friends,

 

I've retreived the list properties, and there are several owners who have multiple records. I want to send a single email to each owner, instead of each value.

 

Could you please help me understand how to create a string that returns "owner emails" then joins all of the duplicates?

 

I think I need to create an array, then filter on owner, then join the duplicates... but I don't entirely understand what that would/should look like.

 

any help would be much appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
v-zhos-msft
Level 10

Re: Get list items, de-duplicate "OwnerEmail" value, then email each owner?

Hi @Jasong911 ,

First you need append the 'emails' to an arrary.

Then use the Union function to de-duplicate "OwnerEmail" value.

The expression in Compose action is:

union(variables('OwnerEmail'),variables('OwnerEmail'))

Capture18.PNGCapture19.PNGCapture20.PNG

Capture21.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Highlighted
v-zhos-msft
Level 10

Re: Get list items, de-duplicate "OwnerEmail" value, then email each owner?

Hi @Jasong911 ,

First you need append the 'emails' to an arrary.

Then use the Union function to de-duplicate "OwnerEmail" value.

The expression in Compose action is:

union(variables('OwnerEmail'),variables('OwnerEmail'))

Capture18.PNGCapture19.PNGCapture20.PNG

Capture21.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Jasong911
Level: Powered On

Re: Get list items, de-duplicate "OwnerEmail" value, then email each owner?

Awesome!!! thank you!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 201 members 6,379 guests
Please welcome our newest community members: