My flow needs to create a draft email with attachments from 1) a sharepoint list item; and 2) a file created by the flow. I've been able to attach the latter, but not the former. Whenever I attempt to attach to the email draft the files attached to the sharepoint item, I receive the error message: Action 'Send_an_HTTP_-_Recipients_Test' failed: Property Attachments in payload has a value that does not match schema.
The flow for the draft with the created file (which works) is as follows: 1) Create file in sharepoint; 2) Get file properties; 3) Compose file (see first photo below); and 4) include outputs of compose action in http request for draft email (see second photo below).
The flows that do not start as follows:
1. Get item attachments
2. Apply to each: a) Get item attachment contents; and b) Get attachment contents
Here is where I have tried variations:
3. Append to previously initialized array
4. Compose array
5. Use outputs of composed array in http request (as shown above)
or
3. Compose each item attachment
4. Use outputs of composed attachments in http request
or
3. Compose each item attachment (as shown in step 3 above)
4. Append the outputs to an array
5. Compose the array
6. Use outputs in http request
I have run out of ideas, please help!