I have a SharePoint list where am starting my approval flow when a new item in created. The requirement is number of attachments for each item submitted can be 1 or more which is not fixed number. How can I tell my flow to send those attachments in my approval email? Its clear in the action for fixed number of attachments. But when the number of attachments is only known during item submission, how can I deal with this?
@efialttes @yashag2255 I lately noticed that attachments coming to email are corrupted. Is this something to with base64 conversion?
Once again this is how my array is looking like and my expression
body('Get_attachment_content')['$content']
Also used this outputs('Get_attachment_content')?['body'].$content.
What are the differences between both of them? Which one should I be using?
In both cases my attachments are corrupted.
Hi again!
Not sure if base64() will make the difference as explained in this great article
https://blog.mattweston365.com/2020/03/sending-multiple-attachments.html?m=1
If not succeed, please note I just searched for the error text and found a promising thread in this same forum
Hope this helps
@efialttes I exactly did it and somehow the flow is failing at getting the contentbytes. Here is what i have with error
My expression for getting attachment content
outputs('Get_attachment_content')?['body'].$content
I have used my AllAttachments Variable in the approval action. Dont know what is going wrong here.
Hi!
On the 'Start and wat for an approval' attachments section you can see an icon on the right (capital T surrounded by a square). When you click on it you switch into Input Array mode, meaning you can buid an array whose elements are your file attachnents and assing it as its input.
Same approach as the one described in this thread
Hope this helps