Hi I am new to power automate desktop. I need to populate the specific field data onto an excel based on the "ref" key in the json file. However I'm not sure how to just extract the array values for the responses key, and pull out the specific ref value to the right excel field. I am stuck at retrieving the "ref" key corresponding values.
Eg: On excel I have columns for name, dob, marital status, gender, hobbies. On the json file, my ref keys contain these values, which should return the text/date/options values on the excel. If my column is name -> I should retrieve the ref key for name -> and return the text key value pair of John.
Here's the json sample:
{
"id": "123",
"responses": [
{
"data": {
"id": "987abc",
"order": 1,
"type": "text",
"ref": "name",
},
"type": "text",
"text": "John"
},
{
"data": {
"id": "988abc",
"order": 4,
"type": "date",
"ref": "DOB",
},
"type": "date",
"date": "Sat Jan 01 2022"
},
{
"data": {
"id": "989abc",
"order": 5,
"type": "radio",
"ref": "MaritalStatus",
},
"type": "option",
"option": {
"id": "xyz123",
"index": 1,
"ref": "Single",
"text": "Single"
}
},
{
"data": {
"id": "990abcO",
"order": 2,
"type": "checkbox",
"ref": "Hobbies",
},
"type": "options",
"options": [
{
"id": "xyz124",
"index": 1,
"ref": "Cardio",
"text": "Swimming"
},
{
"id": "Hxf7v4JMyy",
"index": 3,
"ref": "HIIT",
"text": "Home workout"
}
]
},
Appreciate the advice!