Hi,
I am making an API call and with the result, I need to create a record in dataverse table for each row.
I am getting this common error:
Unable to process template language expressions in action 'Add_a_new_row' inputs at line '0' and column '0': 'The template language expression 'items('Apply_to_each')['name']?['text']' cannot be evaluated because property 'text' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.


The result of the previous step Parse JSON, I get:
{
"body": [
{
"id": "13c229e3-ab1d-4e3d-9f70-0ab45ac4f538",
"startDate": "2024-01-01",
"endDate": "2024-01-01",
"type": "National",
"name": [
{
"language": "ES",
"text": "Año Nuevo"
}
],
"nationwide": true
},
{
"id": "3107b89a-3546-48d1-be26-5a3446bf04d2",
"startDate": "2024-01-06",
"endDate": "2024-01-06",
"type": "Regional",
"name": [
{
"language": "ES",
"text": "EpifanÃa del Señor"
}
],
"nationwide": true
},
I did try with:
item()['name']?['text']
Same error.
Thanks for any help.