Reputation: 1
I designed a logic app to copy the data from blob to azure storage table using logic app now, I m getting my output as wrong as all the data that is present in blob is shown in the output in single column of azure storage table .
I tried using get blob content action and then insert entity from azure storage table .in insert entity step I m getting as all the output of blob content is getting stored in single column of azure storage table
Upvotes: 0
Views: 1389
Reputation: 1731
Once content is retrieved from csv file you need to convert data into Json. Then using compose action you can insert data into table. Reproduced issue from my side and below are the steps I followed,
3.Next using compose action to split the contents of the CSV file on every new line into an array.
Here is the expression used in compose action:
split(body('Get_blob_content_(V2)'),decodeUriComponent('%0D%0A'))
take(outputs('Compose'),add(length(outputs('Compose')),-1))
5.Separating filed names using compose action
split(first(outputs('Compose')), ',')
skip(outputs('Compose_3'), 1)
outputs('Compose_2')[0] split(item(), ',')?[0]
outputs('Compose_2')[1] split(item(), ',')?[1]
outputs('Compose_2')[2] split(item(), ',')?[2]
outputs('Compose_2')[3] split(item(), ',')?[3]
Output of Get blob Content:
Output of Select:
Output of Insert entity:
Data inserted into table:
Upvotes: 0