web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Outlook Send HTTP Requ...
Power Automate
Answered

Outlook Send HTTP Request (draft with attachments) unable to deserialize

(0) ShareShare
ReportReport
Posted on by 5

Hello All!

 

I got stuck while creating a flow saving a draft message with attachments. I used this thread: Solved: Help with Send an HTTP request -draft email - mult... - Power Platform Community (microsoft.com) However, I couldn't add "@odata.type": "#microsoft.graph.fileAttachment" in the Attachment box. Below the error I'm getting while trying to do that.

 

ulace_1-1713237163038.png

 

So I skipped this step and did the rest exactly as in the mentioned thread. See below my steps:

ulace_0-1713236877204.png

 

Instead of filtering the array (I don't need it) - I added action Compose (Attachments) to be able to paste it later to my Send an HTTP request action, as shown below

ulace_2-1713237308875.png

 

Below is Send an HTTP request action and the error I'm getting (last Outputs value is Attachments from previous steps)

ulace_3-1713237384068.png

ulace_4-1713237474790.png

 

Appreciate any help!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @ulace ,

     

    Please try this

    vxiaochenmsft_0-1713247292735.png

    {
     "@@odata.type": "#microsoft.graph.fileAttachment",
     "Name": @{item()?['DisplayName']},
     "ContentBytes": @{body('Get_attachment_content')?['$content']}
     }

     

    Best Regards,

    Wearsky

  • ulace Profile Picture
    5 on at

    Thank you so much, it worked!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard