I am working with a 3rd party API which return a list of contracts, here is a sample of the JSON:-
{
"OOH.wu.2023.9.53": {
"Brand": "***",
"Contract Number": "OOH.wu.2023.9.53",
"Client Name": "****",
"Sector": "FOODS",
"Media_list": [
{
"Network": "****",
"Amount": "4000.000",
"Duration": "1 Month",
"of_Faces": "1",
"Start_Date": "01-Oct-2023",
"End_Date": "01-Nov-2023",
"Delivery Date": "01-Oct-2023"
},
{
"Network": "****",
"Amount": "4800.000",
"Duration": "1 Month",
"of_Faces": "1",
"Start_Date": "01-Oct-2023",
"End_Date": "01-Nov-2023",
"Delivery Date": "01-Oct-2023"
},
{
"Network": "****",
"Amount": "4250.000",
"Duration": "1 Month",
"of_Faces": "1",
"Start_Date": "01-Oct-2023",
"End_Date": "01-Nov-2023",
"Delivery Date": "01-Oct-2023"
}
],
"No of Faces": "3"
},
"OOH.wu.2023.7.50": {
"Brand": "****",
"Contract Number": "OOH.wu.2023.7.50",
"Client Name": "****",
"Sector": "****",
"Media_list": [
{
"Network": "****",
"Amount": "4250.000",
"Duration": null,
"of_Faces": "1",
"Start_Date": "14-Aug-2023",
"End_Date": "14-Sep-2023",
"Delivery Date": "14-Aug-2023"
},
{
"Network": "****",
"Amount": "4250.000",
"Duration": null,
"of_Faces": "1",
"Start_Date": "09-Aug-2023",
"End_Date": "09-Sep-2023",
"Delivery Date": "09-Aug-2023"
}
],
"No of Faces": "2"
}
}
but when i use Parse JSON action inside my automated flow, it did not understand that i need to iterate over a list of contracts, rather it statically parse the objects as follow:-
For example, i was expecting to get one Brand property and when i chose it >> power automate will add ApplyToEach.. so is the issue with the JSON? or i can manage this inside my flow? as in our case we might get 10 contracts and not just 2 contracts
... any advice where is the issue and how i can fix it?