Hi users,
I would like to send the uploaded files from a form by mail.
The form has 2 questions with files.
=> 1 of the question is required (only 1 file)
=> The other question is for "additional doc" and is not required (no limit on the number of files).
For now, I have been able to upload those files to the SharePoint list. For that, I've created variables and conditions to check if the additional documents are "null" or not.
When trying to send the email with the uploaded file:
The error message I received is: "The API operation 'SendEmailV2' is missing required property 'emailMessage/Attachments/0/ContentBytes'."
I tried to append another array to the variable "VarFile" with value ("name" coming from the item and "content bytes" from get fil contents).
But it doesn't work so I guess there is something I completely missed.
See my flow below:
1st screen: get all the attachment responses from the form (with loop)
2nd screen: get file contents of my variable and add attachments to SharePoint list (loop) and send by mail (out of the loop)
1st:
2nd screen:
Thank you in advance for your help !!