Hi Guys
We have a SPO list that can hold 1 or more attachments. At some point the information in the listitem and all attachments of that listitem needs to be sent via email.
I could not get the more than one attachment sent and found this article how-to-send-listitem-attachments-as-email-attachment-from-flow
I followed his steps but in testing the email does not get sent. Could you guys check if this is still the way to do it in 2021 in LA. the article is a bit older and for Flows, not LA
the error I get states I did not specify a to: and subject, but both are specified. When I remove the attachments the email gets through. So I assume I am doing something wrong with the attachments array
{
"status": 400,
"message": "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'.\r\nclientRequestId: ece54e11-b0cf-47e5-b449-b3b2b1bbe9a9",
"error": {
"message": "No input parameters provided. Please provide required input parameters 'To', 'Subject' and 'Body'."
},
"source": "office365-ne.azconn-ne-01.p.azurewebsites.net"
}
Not in the screenshot as it has to be in the top and not in a condition, there is an inittialize Array called Attachments Array step.
In the Append to array step, the first variable Contentbytes is the Body:(Get_Attachment_Content) from the step above it
the Name variable comes from the for each step Items(for each)?[displayname]