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

parsing generic key value pairs

I have  some data pushed to Flow as an HTTP request received in the format below:

I've tried various json parse, compose, select and conditional workflow options.

However I can't find an efficient way to get each subitems keys and values into a variable structure so that I can send this to a stored procedure. This is just multiple fields for one record update. Can anyone help? 

 

{
"$content-type": "application/x-www-form-urlencoded",
"$content": "sdsdfsdfsdfsdf",
"$formdata": [
{
"key": "type",
"value": "update"
},
{
"key": "date_time",
"value": "2018-12-03T15:00:47-06:00"
},
{
"key": "initiated_from",
"value": "admin"
},
{
"key": "initiated_by",
"value": "admin"
},
{
"key": "list",
"value": "0"
},
{
"key": "contact[id]",
"value": "3870"
},
{
"key": "contact[email]",
"value": "x@x.com"
},
{
"key": "contact[first_name]",
"value": "xxx"
},
{
"key": "contact[last_name]",
"value": "xxx"
},
{
"key": "contact[phone]",
"value": ""
},
{
"key": "contact[ip]",
"value": "127.0.0.1"
},
{
"key": "contact[tags]",
"value": "test1,test2,test3"
},
{
"key": "contact[fields][14]",
"value": "2018-11-30"
},
{
"key": "contact[fields][17]",
"value": "85"
},
{
"key": "contact[fields][18]",
"value": "1481526"
},
{
"key": "contact[fields][7]",
"value": "sdfaswasf"
},
{
"key": "contact[orgname]",
"value": "asdgawfa"
},
{
"key": "orgname",
"value": "asfasdf"
}
]
}

3 REPLIES 3
tfhegdbn
Helper IV
Helper IV

Hi @phil4mat,

 

I have tried a lot on my side, it seems that "$content-type": "application/x-www-form-urlencoded" affects the entire process.
Without this, it is easy to get the value you want by traversing.
yairxx
Frequent Visitor

hey

i have the same problem

what i need to do to fix it?

v-bacao-msft
Community Support
Community Support

Hi @phil4mat,

 

Is your problem solved? If not, please refer to a similar Thread:

https://powerusers.microsoft.com/t5/Connecting-To-Data/Problem-with-Parsing-formdata/m-p/198580#M421...

 

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.

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,452)