cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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.

 

2 REPLIES 2
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.

 

Jasong911
Level: Powered On

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

Awesome!!! thank you!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

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!

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: 314 members 5,331 guests
Please welcome our newest community members: