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

Using Flow to send collection data in PowerApps

I'm building an app for our annual reviews and using collections so save local data for calculation purposes. At the end of the review i have a submi button that uses a Flow to send an mail. I want to be able to include the collection information that as selected throuhout the app in the email. I have multiple collections that would be included in the email.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Using Flow to send collection data in PowerApps

Hi @YAbramenko1,

Could you please share a bit more about your scenario?

Do you want to pass a Collection from your app to a flow, then embed it within the Body part of the email?

If you want to pass a Collection from your app to a flow, then embed it within the Body part of the email, I afraid that there is no direct way to achieve your needs in PowerApps currently.

Currently, Microsoft Flow only accepts String Text value as Parameter value passed from an app.

As an alternative solution, you could consider take a try to concatenate values within the Collection into a Single one String value with a specific separator (e.g. #), then pass the Text String value from your app to the flow. Within the flow, you could use Split function to split the string value into an array value.

Please check and see if the following blog would help in your scenario:

https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

In addition, the user @mtxe32 has faced same needs with you, please check the response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Using-Collection-Content-in-a-Flow/m-p/8677

 

Best regards,

Kris

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

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Using Flow to send collection data in PowerApps

Hi @YAbramenko1,

Could you please share a bit more about your scenario?

Do you want to pass a Collection from your app to a flow, then embed it within the Body part of the email?

If you want to pass a Collection from your app to a flow, then embed it within the Body part of the email, I afraid that there is no direct way to achieve your needs in PowerApps currently.

Currently, Microsoft Flow only accepts String Text value as Parameter value passed from an app.

As an alternative solution, you could consider take a try to concatenate values within the Collection into a Single one String value with a specific separator (e.g. #), then pass the Text String value from your app to the flow. Within the flow, you could use Split function to split the string value into an array value.

Please check and see if the following blog would help in your scenario:

https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

In addition, the user @mtxe32 has faced same needs with you, please check the response within the following thread:

https://powerusers.microsoft.com/t5/General-Discussion/Using-Collection-Content-in-a-Flow/m-p/8677

 

Best regards,

Kris

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

Highlighted
Frequent Visitor

Re: Using Flow to send collection data in PowerApps

Hi Kris,

 

Thank you for response. I've looked through those posts before and ran into the same issues.

 

I've switched to putting it into an html text and then running the html through the SendEmail function. This seems to work but it does not format properly and sends the html text and data instead of just the data. Also it seems to send 3 copies of the last data in the email.

Highlighted
Frequent Visitor

Re: Using Flow to send collection data in PowerApps

Hi Kris,

 

I did some research and had to use the HTML route and was able to get my information out.

 

Thank you for the support!

Highlighted
Microsoft
Microsoft

Re: Using Flow to send collection data in PowerApps

I was able to get this issue by using the JSON method in  powerapps. I have detailed it on the below article :

 
The idea is to have the collection converted to JSON and parse the JSON object at the Flow end like any other JSON Object.
 
 
 

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,880)