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

How to initialize Variable as Array with PowerApps Data?

Hey guys,

 

in my Flow-Process I want to pull some datafields from PowerApps and use it to populate a Word template (This works so far).

 

Problem is that there can be up to 63 data fields from PowerApps and I don't want to initialize a single variable for each of these fields. My goal is to save all these PowerApp-Inputs in one variable (from the type array) and then pick these Array values (which represent the PowerApps datafields) in the "Populate a Microsoft Word template.

Right now I have no Idea whether this is possible or not and I also don't know how to implement this in Flow...

 

Any help is appreciated!
Thanks in advance!

 

Julian

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: How to initialize Variable as Array with PowerApps Data?

Hi @julianhoewel_95 

 

In PowerApps, you can create a record or a collection and then use the JSON function and pass the data over to Flow 

 

JSON makes the record or collection in JSON format

 

then in Flow you can read the variable as a string

Then use the json expression to get the object and then traverse through it

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: How to initialize Variable as Array with PowerApps Data?

Hi @julianhoewel_95 

 

In PowerApps, you can create a record or a collection and then use the JSON function and pass the data over to Flow 

 

JSON makes the record or collection in JSON format

 

then in Flow you can read the variable as a string

Then use the json expression to get the object and then traverse through it

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,844)