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 / Error - Office 365 Out...
Power Automate
Unanswered

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,129 Super User 2025 Season 2 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,129 Super User 2025 Season 2 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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard