I have an array of data that gets passed into a foreach block in my flow.
Here's how the structure looks like when I download to preview the output:
[{"@odata.etag":"W/\"JzEsNTYzNzE0NDU3Nic=\"",
"ItemInternalId":"ce8f4afe-16cb-4b7d-a4f5-b23b029e8bf3","Locator":"TestA","DirPartyTable_PrivateForParty_PartyNumber":"","IsInstantMessage":"No","IsMobilePhone":"No","CountryRegionCode":"","LogisticsLocation_FK_LocationId":"000000912","ElectronicAddressRoles":"","LocatorExtension":"","IsPrimary":"No","Description":"","Type":"None","IsPrivate":"No"},
{"@odata.etag":"W/\"JzEsNTYzNzE0NDU3Nyc=\"","ItemInternalId":"2d702861-6901-4e11-a182-0debfb52f382","Locator":"TestB","DirPartyTable_PrivateForParty_PartyNumber":"","IsInstantMessage":"No","IsMobilePhone":"No","CountryRegionCode":"","LogisticsLocation_FK_LocationId":"000000913","ElectronicAddressRoles":"","LocatorExtension":"","IsPrimary":"No","Description":"","Type":"None","IsPrivate":"No"}.. etc etc etc.
I want to read every row using the for each and insert this data into a SQL table. I use a dynamic expression to get the fields.
This one works fine:
items('Apply_to_each')?['Locator']
But for some reason
items('Apply_to_each')?['ItemInternalId'] returns nulls, as if the values aren't there.
Why is this? Does anyone know what I could try?