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:
Any thoughts?
I figured it out.
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:
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
WarrenBelz
146,660
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional