cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Send JSON to Flow after button click

H,

 

I have the following form created from CDS data source of entity type 'Task'.

 

PowerApp.png

I need to send a JSON object with the field values after users clicks on Submit.

 

I am new to PowerAPs and not sure what the best way to go about doing this.

 

Please help.

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

Yes, this is possible.  Build your JSON output as a string in PowerApps.  Make sure you use single quotes rather than double quotes.  Then send that string to Flow as a Parameter.  In Flow you can use a sample of your JSON output to create the schema in a Parse Json action.  Feed the JSON string you get as input into that action and you will have dynamic content for the fields in the JSON output.  For example I built a test using the followin JSON

{
'employee': {  
        'name':       'LastName',   
        'salary':      56000,   
        'married':    true  
    }  
}

I passed that as a string to Flow from a PowerApps button.  Then Parsed it in Flow.  AFter that was done I had access to name, salary, and married as dynamic content in Flow.

 

The one limitation is that you have to use a fixed JSON schema so that Flow will know how to read the string you pass.



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

Cool let me have a look at this.

 

Thanks

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 (11,559)