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

Problem with Parsing $formdata

hey!

 after submit form i get this:

{
"$content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"$content": "Z25hbWU9YXNkJmJuYW1lPWFzZCZncGhvbmU9MjMmYnBob25lPTEyMyZlbWFpbGFkZHJlc3M9YXNkYXNkJTQwYWZzZGYuY29tJnRlbGVwaG9uZT0wNTUwNTAmYWRkPWFzZGFzZCZzdD1hc2Rhc2Qmdj1hc2Rhc2QmZGF0ZXBpY2tlcjE9MjYtMTItMjAxOCZkb25hdGlvbj0yNTAmdGV4dD1hc2Rhc2QmbWFrZXVwPWFzZCZoYWlyPWFzZGFzZCZkaj1hc2QmcmF2PWFzZCZkcmVzcz1hc2QmZD1hc2QmbW9yYW49YXNkJm1hZ25ldD0mbW9yZXRleHQ9",
"$formdata": [
{
"key": "gname",
"value": "asd"
},
{
"key": "bname",
"value": "asd"
},
{
"key": "gphone",
"value": "23"
},
{
"key": "bphone",
"value": "123"
},
{
"key": "emailaddress",
"value": "asdasd@afsdf.com"
},
{
"key": "telephone",
"value": "055050"
},
{
"key": "add",
"value": "asdasd"
},
{
"key": "st",
"value": "asdasd"
},
{
"key": "v",
"value": "asdasd"
},
{
"key": "datepicker1",
"value": "26-12-2018"
},
{
"key": "donation",
"value": "250"
},
{
"key": "text",
"value": "asdasd"
},
{
"key": "makeup",
"value": "asd"
},
{
"key": "hair",
"value": "asdasd"
},
{
"key": "dj",
"value": "asd"
},
{
"key": "rav",
"value": "asd"
},
{
"key": "dress",
"value": "asd"
},
{
"key": "d",
"value": "asd"
},
{
"key": "moran",
"value": "asd"
},
{
"key": "magnet",
"value": ""
},
{
"key": "moretext",
"value": ""
}
]
}
 
 
how can i parsing the data?
2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Problem with Parsing $formdata

Hi @yairxx,

 

You could use "object[‘property’]" to get the array.

Then use "Apply_to_each" to iterate over the array and use array elements.

What is stored in Compose action is the submission of form you provided.

Expression reference:

outputs('Compose')['$formdata']

items('Apply_to_each')['key']

items('Apply_to_each')['value']

Capture6.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
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: Problem with Parsing $formdata

Thank you so much! its work!

I have one more question
Sorry if it is basic
How can I get the information from any compose? I do not see them in the dynamic fields...

 

thank you again @v-bacao-msft

View solution in original post

6 REPLIES 6
Highlighted
Community Support
Community Support

Re: Problem with Parsing $formdata

Hi @yairxx,

 

You could use "object[‘property’]" to get the array.

Then use "Apply_to_each" to iterate over the array and use array elements.

What is stored in Compose action is the submission of form you provided.

Expression reference:

outputs('Compose')['$formdata']

items('Apply_to_each')['key']

items('Apply_to_each')['value']

Capture6.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
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: Problem with Parsing $formdata

Thank you so much! its work!

I have one more question
Sorry if it is basic
How can I get the information from any compose? I do not see them in the dynamic fields...

 

thank you again @v-bacao-msft

View solution in original post

Highlighted
Community Support
Community Support

Re: Problem with Parsing $formdata

Hi @yairxx,

 

You could find "Output" in Dynamic content, and the "Compose name" corresponding to the title is the Compose you need to reference.

1.PNG

If you need to use it in Expression, you could configure "outputs(‘Compose name’)" for reference.

2.PNG

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Problem with Parsing $formdata

 

thank you again

i want to use the output out of the loop

how can i use the values? in the picture you can see compose 3 and 4 are missingCapture123.JPG

Highlighted
Community Support
Community Support

Re: Problem with Parsing $formdata

Hi @yairxx,

 

Because both Compose are configured in "Apply_to_each", they can only be displayed in the list when the action in the "Apply_to_each" is configured to reference the two Compose-related Dynamic contents.

Please elaborate on how you want to use the values of the two Compose outputs.

Please provide more details.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Frequent Visitor

Re: Problem with Parsing $formdata

Thank you! @v-bacao-msft

i want to create PUT request to my crm

To update the values on a customer card
Each value is different from each other and is supposed to be located elsewhere in the customer card

so i want to use each value for different request 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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!

Top Solution Authors
Users online (8,385)