cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lburgess
Helper I
Helper I

Problem using email attachment after approval response received

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?

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

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.

View solution in original post

3 REPLIES 3
ekarim2020
Super User
Super User

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.

Thanks @ekarim2020,.

 

I don't see File Content as an option. 

 

lburgess_0-1659388602040.png

 

I figured it out.

 

lburgess_0-1659389426179.png

 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,523)