@v-xida-msft You don't have an idea of how much you help me thanks a lot !!!
So I feel like I got the entire this correct but in the "append to array variable" I have typed exactly what is in this thread and it says in red below "enter a valid json". any ideas what an amature like me is doing wrong?
I have been working with this for a couple of days and I can't get past this same error.
The template validation failed: 'The action(s) ''Get_Attachment_content' refferenced by 'inputs' in action "Append_to_array_variable_2' are not defined in the template.
(I'd upload a screenshot, but it isn't allowing me to upload it here for some reason.)
I think part of the reason is that some changes to Flow tempaltes have been made since this was written, but I can't figure out what to change to correct this error. It's just outside of my Flows knowledge, so I was just trying to replicate what was created in this SOLUTION.
EDIT: I FINALLY got it to work. Dummy me, I needed to add _2 to part of the name. BUT - Now the issue is that it doesn't attach the uploaded attachment to the initial email. It only attaches to the approved/rejected email. Reason here is because there is no template for Send Approval Email for Outlook in Flows. You have to start an approval with a condition attached to it of "if yes" and "if no". I can't get it to work with an approval email like what is shown above.
Any chance anyone has some ideas?
Thanks!
Kelli
My flow goes through with no errors but there is no attachment in the email, any ideas?
Hi Milan,
Is this solution still working? I cna't seem to replicate it. I get the email from the flow but not files are attached to it. I followed the instruction to a T.
Rod
Thank you so much!
it is running now.
Hi @Mirian,
I have made a test on my side and please take a try with the following workaround:
Add a "Append to array variable" action, Name choose AttachmentArray variable, Value set to following formula:
Within json format text, the key of first element set to Name and corresponding value set to DisplayName dynamic content of "Get attachments" action. The key of second element set to ContentBytes and corresponding value set to following formula:
body('Get_attachment_content')?['$content']Under the "Apply to each" action, add a "Send approval email" action, Attachments field set to AttachmentArray variable.
Image reference:
The flow works successfully as below:
Best regards,
Kris
I have managed to send the attachments each one in an email, but I need them to be all in the same email
the steps :
1. sharepoint-Obtain attachments
2. Sharepoint-Get archive content. Here, an application is automatically created Aply to each and that is where I have sent the file by mail
How I can send all the attachments in one email?
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional