I have to read data from an XML and load it to SQL. So in middle I need to add some business logic for each record for which I used for each task in Logic Apps. But when there is a single record in the XML, result is being considered as Object rather than array and logic app fails
This is how my XML looks:
<VDSP_INPUT_A_Set><VDSP_INPUT_A_Record><head><blanket_number>CMC741311</blanket_number></head></VDSP_INPUT_A_Record></VDSP_INPUT_A_Set>
ForEach logic: VDSP_INPUT_A_Set.VDSP_INPUT_A_Record
Foreach loop needs to executed even if there is one record in XML