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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error - Office 365 Out...
Power Automate
Answered

Error - Office 365 Outlook - Send email with attachments (V2)

(1) ShareShare
ReportReport
Posted on by 41

I'm receiving this error message when trying to use action Office 365 Outlook - Send email with attachments (V2)

I've tested using the actions/methods described in this forum as well as the URL 

Office 365 Outlook - Power Automate | Microsoft Learn

 

What should I try next?

 

treddfw_0-1720214743837.png

Correlation Id: 37b2c6e7-d1e4-4abf-ab7b-be6e005c7d36

 

My Power Automate Desktop Version is

treddfw_1-1720214782295.png

Version 2.44.46.24141

 

The Flow steps are

treddfw_2-1720214831871.png

 

Detail on the Action in error

treddfw_3-1720214869346.png

 

Detail on the Variable used for the Attachments

treddfw_4-1720214909570.png

0

{ 'Name': ROSWELL - 2024.06 Jun.pdf, 'ContentBytes': Byte [240901] }

1

{ 'Name': EDMARK - 2024.06 Jun.pdf, 'ContentBytes': Byte [121918] }

2

{ 'Name': DAP - 2024.06 Jun.pdf, 'ContentBytes': Byte [159472] }

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @treddfw 

     

    Could you show what you have done in add to list action ?

    Nived_Nambiar_0-1720371758433.png

     

    I assume you have added text as each element to list not as custom object. For writing custom object to list- follow this approach for example-

    Nived_Nambiar_1-1720371811060.png

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • treddfw Profile Picture
    41 on at

    Thanks Nived for the assist. When I add the "%" to prefix and suffix the code, it gives me a syntax error.

    Here's what my code currently does:

     

    treddfw_0-1720373760309.png

     

     

    Add Item: { 'Name': %FileName%, 'ContentBytes': %BinaryData% }

     

    In the support URL listed at the beginning of my post, the suggested code to use is as follows:

     

    {'Name': %variable holding the file name%, 'ContentBytes': %variable containing the binary data%}

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @treddfw 

     

    The way you have written the expression is wrong - it should be like this

    Add Item: %{ 'Name': FileName, 'ContentBytes': BinaryData }%

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • treddfw Profile Picture
    41 on at

    That's what it took....Thank you so much! 

    Looks like the documentation is wrong.

    The only time the "%" is used is as prefix and suffix. The "%" is not used in the variables themselves.

    Thanks again!

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard