Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
VikramShah
Regular Visitor

Power Bi Automate - Dynamic list

Hi,

 

Currently while using automate I am sending direct emails to users to correct the segment information. But the problem that I am facing is that if there are more than 1 order associated with any segment for an user then there are multiple mails which are sent to user. I want to consolidate the order nos in one dynamic list and send only 1 email and not multiple emails. In the below example for User B there are 3 emails which are sent for Segment - Not defined as there are 3 different orders. Can I consolidate these 3 orders in only 1 email.

Capture.PNG

2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @VikramShah,

 

Your send email notification action is in a loop that runs once for each segment - therefore an email is sent for each segment.

You need to create an array that contains the segment and then send a single email and add the array.

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

goncalogeraldes
Super User
Super User

I think this is a question for the Power Automate Community and not Power BI community.

 

https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity

 

Nevertheless, basically you have to fetch the whole list, then you have to create a HTML table and insert the needed data. After this, you have to get table output into a "Compose" and send these output as an email. If you want to have a filter it must be before you create an HTML table!

 

Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.