cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
YAbramenko1
Level: Powered On

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

YAbramenko1
Level: Powered On

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
YAbramenko1
Level: Powered On

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!

svijay_001
Level: Powered On

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,159)