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

Community site session details

Session Id : h/nQqUno0P8ku28XCTqPOr
Power Automate - Building Flows
Unanswered

Content Bytes - approval flow then onto email

Like (0) ShareShare
ReportReport
Posted on 13 Mar 2023 15:10:50 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

 

 

 

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on 21 Mar 2023 at 09:17:32
    Re: Content Bytes - approval flow then onto email

    Hello @jaykaybay ,

    what issue? Can you share the error message?

  • jaykaybay Profile Picture
    4 on 19 Mar 2023 at 20:19:02
    Re: Content Bytes - approval flow then onto email

    Thanks.

     

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

     

    jaykaybay_0-1679257135509.png

     

  • tom_riha Profile Picture
    10,127 Most Valuable Professional on 14 Mar 2023 at 08:05:34
    Re: Content Bytes - approval flow then onto email

    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 13 Mar 2023 at 21:49:40
    Re: Content Bytes - approval flow then onto email

    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,127 Most Valuable Professional on 13 Mar 2023 at 17:09:28
    Re: Content Bytes - approval flow then onto email

    Hello @jaykaybay ,

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

     

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

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete