cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yairxx
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
v-bacao-msft
Community Support
Community Support

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

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
v-bacao-msft
Community Support
Community Support

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

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

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.

 

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

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.

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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA 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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,000)