I have a flow with a JSON array I get via Http call.
{
"NAVN": "",
"NAVN 2": "",
"ADRESSE": "",
"ADRESSE 2": "",
"KONTAKTNAVN": "",
"POSTNR": "",
"BY": "",
"Email": "",
"Mobil": "",
"FIRMA/PERSON": "",
"Indmeldelseskilde": "",
"ABONNEMENT": "",
"Beløb": ""
}
The array can have 1 or many lines.
What I need is to change the JSON names into some else, and for each item in the array.
Up until now I have just used Initialize Variable action to change the names in the JSON since there was only one line.
Now I have an array and I need to Initialize each item.
I tried to do it in a Apply to each but get a "The operation 'Initialize variable' can only be used at top level.".
Maybe it's just me but not being able to initialize inside the loop seems weird.
Is there a work around or another way to do this properly?
Edit:
When I try to make an Initialize Variable to the JSON array Power Automate automatically makes an Apply to Each action and then says it can't be done.
