Hello There!
Im having some issues trying to read a file which has just been created in the same flow.
The full context is: I need to fill a Sharepoint List with excel content (either attached via Form or another Sharepoint List) (if someone knows a better way plz tell me)
So far the flow is:
Im having some trouble implementing points 6 and 7, so far this is what i got:
{
"type": "object",
"properties": {
"body": {
"type": "object",
"properties": {
"value": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@@odata.etag": {
"type": "string"
},
"colA": {
"type": "string"
},
"colB": {
"type": "string"
},
"colC": {
"type": "string"
},
"colD": {
"type": "string"
},
"ColE": {
"type": "string"
},
"colF": {
"type": "string"
},
"colG": {
"type": "string"
},
"colH": {
"type": "string"
},
"colI": {
"type": "string"
}
},
"required": [
"@@odata.etag",
"colA",
"colB",
"colC",
"colD",
"colE",
"colF",
"colG",
"colH",
"colI"
]
}
}
}
}
}
}
Output from List rows present in a Table is sent to Parse JSON and maps it:
Example when I run it;
And next operation where I need to use the row info:
Fails with:
ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['body']?['value']' is of type 'Null'. The result must be a valid array.
Hope someone can nail down the problem.
Thanks in advance fot your time.
Sorry for the delay, indeed this was a solution.
Thx!!!
Hi @Fradantim,
Do you want to save the new created/modified attachment to OneDrive and sync the data with another SharePoint list?
If so, I think you could directly create item based on the excel file you created in the OneDrive, please check the following flow demo:
Add Get attachments and Get attachment content to get the attachment name and attachment content:
items('Apply_to_each_3')?['Name']
Note that I want to save the Name column within excel table to the Title column in the SP list.
Here is the testing result.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2