I have a form that requires 5 different photos to be attached. I have created a flow:
When a new response is submitted
Get response details
Parse JSON photo1
" photo2
" photo3
" photo4
" photo5
Get file content photo1
" photo2
" photo3
" photo4
" photo5
Condition: Check for duplicate images (this checks if Body name 1= Body name 2, etc)
Yes: Send email to respondent to resubmit
No: Create Item in Sharepoint
Add Attachment photo1
" photo2
" photo3
" photo4
" photo5
The flow is successful, however the photo attachments are empty.
I actually have two questions:
1. Is there a better way to do this? I've thought of allowing users to just upload 5 files, which tracks with the "for each" concept, but then I can't force 5 files to be uploaded.
2. What is the purpose of the "for each" in this case, given that each form question will only allow one file to be uploaded. The flow won't save without each "Get file content" & "Add Attachment" individually encased in a "For each", let alone run. This makes the flow look clunky, and makes it impossible for me to use the proper outputs of "get file content" as a dynamic input, which I think is why the attachments are empty.
TIA!