Many thanks for your help.
I tell you, If I sent the CSV created with your formula, and removing the json in the Create CSV Table, I get this error:
So, I added a step before , a Compose with:
split(triggerBody()['text'], ',')
And now, I get this error message:
The result of the Compose is this:
[
"Destination",
"Code",
"Address",
"City",
"State",
"ZIP",
"Country",
"ActiveLanzarote",
"ACE",
"C/Reina Sofia 17",
" Local 4",
"Puerto del Carmen",
"Lanzarote",
"35510",
"SPAIN",
"YesADB - Kusadasi",
"ADB",
"Mahallesi Kirazlı Yolu Caddesi A Blok No:3AA",
"Aydin",
"Aydin",
"09400",
"TURKEY",
"YesAGA - Agadir",
"AGA",
"Rue Mohamed Iqbal Amsernat",
"Agadir",
"Agadir",
"8000",
"MOROCCO",
"YesAGP - Malága",
"AGP",
"Avda. Antonio Machado",
" 28",
" Edificio Maryola 1",
" Planta 1A",
" 29630",
" Benalmadena",
"Malága",
"AndalucÃa",
"29630",
"SPAIN",
"YesALC - Alicante"
]
I do not know, but if you take a look, the last column Active is not separated from the first column of the record.
"YesAGA - Agadir",
"YesAGP - Malága",
I must to be:
"Yes",
AGA - Agadir",
"Yes",
"AGP - Malága",
If I added a comma after the Active column:
With(
{
_Export:
"Destination,Code,Address,City,State,ZIP,Country,Active," & Char(10) &
Concat(
_Data,
Name & "," & Code & "," & Address & "," & City & "," & State & "," & ZipCode & "," & Country.Name & "," & Active & ","
)
},
I get the Active column separately:
[
"Destination",
"Code",
"Address",
"City",
"State",
"ZIP",
"Country",
"Active",
"Lanzarote",
"ACE",
"C/Reina Sofia 17",
" Local 4",
"Puerto del Carmen",
"Lanzarote",
"35510",
"SPAIN",
"Yes",
"ADB - Kusadasi",
But I get the same error on creating the CSV table:
The property 'columns' must be specified unless the 'from' property value is an array of objects.
Thanks for all your help!