Hi.
I've tried to create a flow to change the original name of an attachment that was uploaded from PowerApp and saved in a sharepoint list but i get this error:
"The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@concat(outputs('Get_attachments')?['body/{EmployeeNo}'],'.jpg')' is of type 'String'. The result must be a valid array."
My receptionist will use the powerApp to search for the employee name from the existing records in sharepoint list, go to edit, take a photo of the employee and save the record.
The photo will be saved as an attachment in Sharepoint list. I need to rename the attachment to the employeeNo.jpg.
