I am trying to loop through a SharePoint list and grab the attachments from each item, if any exist. I get the error below about an expression being invalid. The expression is supposed to count the number of attachments so I can use it in a condition.
Here are two expressions I have tried separately:
- length(body('Get_attachments')?['value']) > 0
- @greater(length(outputs('Get_attachments')?['body']), 0)
I get an invalid expression on both. Any help would be much appreciated. Thanks!