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 / Content Bytes - approv...
Power Automate
Unanswered

Content Bytes - approval flow then onto email

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I have a flow set up for when an email is received with an invoice attached it is sent for approval.

The approval works fine and I can download the PDF on the approval email.

 

However, on approving, the file is saved in Sharepoint and the email is sent as per the Approval flow, BUT there is no content on either. Basically save the invoice to the contractor's folder and sent the invoice to the accountant for payment.

 

I then flipped the email and Sharepoint actions around and now get the following error.

The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/ContentBytes'.

 

I have the "ContentBytes" bit set up as I am conscious email reads this instead of just "Content".

 

Any ideas?

 

jaykaybay_13-1678720071665.png

 

 

jaykaybay_5-1678719034138.png

jaykaybay_6-1678719086662.png

jaykaybay_7-1678719117976.png

jaykaybay_8-1678719234541.png

jaykaybay_9-1678719271615.png

jaykaybay_10-1678719355643.png

jaykaybay_12-1678719644284.png

 

 

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @jaykaybay ,

    try to use this simplified array format for the email attachments:

     

    {
     "Name": <DisplayName>,
     "ContentBytes": <AttachmentContent>
    }

     

  • jaykaybay Profile Picture
    4 on at

    Hello Tom - thank you for coming back.

     

    Flow changed with the below array.

    jaykaybay_1-1678744051591.png

     

    However, strangely the file saved in SharePoint now saves. However, the email with the PDF/document still have "no content" - but the flow is successful ie: the email is sent, and there is a PDF attached but won't open/no content.

     

    jaykaybay_2-1678744143295.png

     

     

     

     

  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    The email shouldn't be in the loop, it should look the same as the approval task - just enter the variable in the attachments, no loop needed, maybe that's causing the problem.

  • jaykaybay Profile Picture
    4 on at

    Thanks.

     

    I have removed the loop. We still have the same issue sadly.

     

    jaykaybay_0-1679257135509.png

     

  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Hello @jaykaybay ,

    what issue? Can you share the error message?

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard