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?
Hello @jaykaybay ,
what issue? Can you share the error message?
Thanks.
I have removed the loop. We still have the same issue sadly.
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.
Hello Tom - thank you for coming back.
Flow changed with the below array.
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.
Hello @jaykaybay ,
try to use this simplified array format for the email attachments:
{
"Name": <DisplayName>,
"ContentBytes": <AttachmentContent>
}
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2