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
Community Support Team
Community Support Team

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.

 

2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

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.

 

Jasong911
Level: Powered On

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

Awesome!!! thank you!

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

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 Flow Community Video Gallery!

Users Online
Currently online: 34 members 4,248 guests
Please welcome our newest community members: