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

Pass JSON to Flows

Dear all, 

 

I know there are already a few topics on this forum discussing my issue.  Neverthless, i can't get things working.  So i would really appreciate if anyone could help me.

1. I've created a button where JSON is created 

 

   Capture1.JPG

 

2. I've created a flow that msut use the JSON structure

 

Capture2.JPG 

 

3.  When i add a button an link the flow action, it requires a parameter, which is ok
Capture3.JPG

4 When i add the parameter (which i assume lust be the JSON file), the system keeps me telling that a record is expected.

Capture4.JPG

 

Capture5.JPG

 

Who has a suggestion for me how to pass the JSON file to flows ? 

 

Kind regards and very appreciated

 

STeve

1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

If the schema is always going to be the same then pass it as a string and use a ParseJson action in Flow to unpack it back to a JSON array.  You can pass a full collection just by putting it inside JSON().  But I think you need a Parse JSON before you try to use the json you passed.

I have a collection called colAutoMileage which I pass to Flow using 

'PowerApp->Initializevariable'.Run(JSON(colAutoMileage))

Inside my PowerApp I use a ParseJson that I have pasted a sample payload in to generate the schema. I would suggest using the default JSON schema rather than specifying IndentFour. 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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

secondImage

Demo Extravaganza is Back!

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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (16,720)