Hi all,
I just had one of my flows "fail" due to the fact that the attachment to an e-mail exceeded the 5Mb size. I want to build in a check to prevent this from happening. How can I determine the combined size of all attachments of a SharePoint List item?
Any feedback is welcome!
Regards
Charles
Solved! Go to Solution.
Hi @Charles-v-D
Following Expression (approx) will give you the file size:
KB = div(int(length(string(body('Get_file_content')))),1024) (Preferred)
MB = div(int(length(string(body('Get_file_content')))),1048576)
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Hi @Charles-v-D
Following Expression (approx) will give you the file size:
KB = div(int(length(string(body('Get_file_content')))),1024) (Preferred)
MB = div(int(length(string(body('Get_file_content')))),1048576)
-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Hello @Charles-v-D ,
I am also looking into the simplest way to determine the combined size of all attachments of a SharePoint List item. How did you go about accomplishing this?
Regards,
A. Watts
Hi @AW0522
My flow collects the attachments from the item and then for each of them I increment a variable with the size of each attachment. The size in bytes is determined by:
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.
User | Count |
---|---|
21 | |
21 | |
9 | |
7 | |
7 |
User | Count |
---|---|
32 | |
31 | |
24 | |
22 | |
11 |