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.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (89,361)