Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Problem using email attachment after approval response received

(0) ShareShare
ReportReport
Posted on by 30

I have a flow that uses information from a SharePoint list item to send an approval email with the attachments from the list item.  The attachments are loaded into an array variable.  The approval email works perfectly.

 

When I check for the approval results, I need to send an email to the requester specifying the results of the approval request as well as to another department to act on the approval.  In all cases, I want to include the attachments from the initial email in the subsequent emails.  I presumed it would be as simple as specifying the array variable as the attachments just as I did in the initial e-mail. 

 

The flow is failing on sending the follow-up email with the error "OpenApiOperationParameterValidationFailed. The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)_-_Denied' of type 'OpenApiConnection' is not valid. Error details: The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/ContentBytes'." If I remove the array variable from the email, the flow completes successfully.

 

The array variable looks like this:

 

lburgess_0-1658329162799.png

 

 

Any thoughts?

  • lburgess Profile Picture
    30 on at
    Re: Problem using email attachment after approval response received

    I figured it out.

     

    lburgess_0-1659389426179.png

     

  • lburgess Profile Picture
    30 on at
    Re: Problem using email attachment after approval response received

    Thanks @ekarim2020,.

     

    I don't see File Content as an option. 

     

    lburgess_0-1659388602040.png

     

  • Verified answer
    Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Problem using email attachment after approval response received

    hI @lburgess ,

     

    You will need to use two array variables in order to send attachments. One array variable will be used in the Approval action (varApprovalsAttachments) , the other (varAttachments) will be used in the Send Mail action. The format structure of the arrays are slightly different:

    Snag_11b6a62d.png

    Snag_11b87281.png


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow