cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nailepmac
Frequent Visitor

Creating an array of emails with excel table

Hi,

So now I have the following flow. I have an excel table, with people emails and a number with their sales. I am sending an individual email to each if the value is higher than 0 for example.  


But instead of sending an individual email for each, I would like flow to go row by row, get the emails of the persons who have sales higher than 0 and send one unique email to this "array" of emails.


Is it possible?


Thanks

 

 

flow.png

1 ACCEPTED SOLUTION

Accepted Solutions
DamoBird365
Community Champion
Community Champion

Hi @nailepmac 

 

I've done you a demo online here

 

This is what the flow looks like:

DamoBird365_0-1616174851821.png

I was going to filter within the excel action but discovered that the sales values are returned as a string and you cannot therefore filter directly within the get rows action.  Don't worry though, we can use filter array and I have demo'd that in my video covering your requirements.

 

Please let me know how you get on.

 

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


P.S. take a look at my new blog here

View solution in original post

4 REPLIES 4
DamoBird365
Community Champion
Community Champion

Hi @nailepmac 

 

You could filter your list rows on the column you mention

salevalue gt '0'

Then use a create html table action with the value from this get items action

 

Then create a string variable for the email list.

An apply to each that takes the value from the list rows with....

an append to string [dynamic email field] ;

 

Finally a send email to string with the HTML table as your content?

 

End result is everyone gets the same email with the table of sales greater than 0.

 

Hope that is what you are looking for.

 

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


P.S. take a look at my new blog here

Could you please provide a flow example for the second part Damien (variable emails + append string etc) ? Still a newbie on flow...

DamoBird365
Community Champion
Community Champion

Hi @nailepmac 

 

I've done you a demo online here

 

This is what the flow looks like:

DamoBird365_0-1616174851821.png

I was going to filter within the excel action but discovered that the sales values are returned as a string and you cannot therefore filter directly within the get rows action.  Don't worry though, we can use filter array and I have demo'd that in my video covering your requirements.

 

Please let me know how you get on.

 

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


P.S. take a look at my new blog here

View solution in original post

Simply PERFECT! 1000 "thank yous"! This is going to help me a lot in my work. Best wishes!

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,428)