Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Compose Array of Attachments for HTTP Request (Outlook Draft Email)

(1) ShareShare
ReportReport
Posted on by 4
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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492