cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
007James_Bond
Helper I
Helper I

Read powerapps collection email address each time

Hi Everyone,

 

How can I read PowerApps screen collection to get only specific email address and configure these mail address to bulk mail .

 

I have tries with JSON but cant able to do it.

 

Suppose :this is collection that is formed every time based on the filter condition.

 

Collect(Emaill,Filter(GroupBy(ColectionAA,"{Name}","Grouped"),Count(Distinct(Grouped.'Name','Name').Result)=Value(Dropdown1_4.Selected.Value)))(Dropdown1_4.Selected.Value)))

 

Based on collection I will read users email dynamically in ms flow to create instant trigger.

 

please help me how can I read email column from collection ?

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @007James_Bond ,

Could you please share more details about your scenario?

Could you please show more details about the Email Column to store the email address in your ColectionAA? Do you use the '{Name} ' column to store the email address?

 

Firstly, you could modify your Filter formula as below:

ClearCollect(
         Emaill,
         Filter(
                 GroupBy(ColectionAA,"{Name}","Grouped"),
                Count(Distinct(Grouped,'Name')) = Value(Dropdown1_4.Selected.Value)
        )
)

 

If you want to extract email address from above Email collection, and send email to these email address, please try the following formula:

Office365Outlook.SendEmail(
                             Concat(Email, '{Name}' & ";"), // concatenate all email address from the Email collection 
                             "< Subject Line >", 
                             "< Body Message >"
)

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
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
Alex_10
Super User
Super User

do you want to send to MS flow all emails from the collection called 'Emaill'? if yes:

Set(varEmails, Concat(Emaill, EmailColumn & ";"));

YourFlowName.Run(varEmails);

v-xida-msft
Community Support
Community Support

Hi @007James_Bond ,

Could you please share more details about your scenario?

Could you please show more details about the Email Column to store the email address in your ColectionAA? Do you use the '{Name} ' column to store the email address?

 

Firstly, you could modify your Filter formula as below:

ClearCollect(
         Emaill,
         Filter(
                 GroupBy(ColectionAA,"{Name}","Grouped"),
                Count(Distinct(Grouped,'Name')) = Value(Dropdown1_4.Selected.Value)
        )
)

 

If you want to extract email address from above Email collection, and send email to these email address, please try the following formula:

Office365Outlook.SendEmail(
                             Concat(Email, '{Name}' & ";"), // concatenate all email address from the Email collection 
                             "< Subject Line >", 
                             "< Body Message >"
)

 

Please try above solution, then check if the issue is solved.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (1,887)