Hi @413387330
As per me below workflow steps should work :-
- Files array will be der in ForEach Activity
- I have attached the workflow which will give the file size in MB
- After measuring Each file size Just check within If Activity as fileSizeInMB <= 10
If Yes then create the New List & repeat the loop and add the next file in New List which will consists of the files having size less than 10MB along with that add the file Size also till it gets 10MB to the same variable fileSizeInMB or you can also have any new variable
If No means if it is greater than 10 MB then within else you will mail the files of the new List created and move those files to another folder just for convenience that one by one as per the files are mailed they are moved to another folder. And after mailing just make the new List Empty and then add the current loop file to the new list and assign variable fileSizeInMB = currentLoopFileSize- Repeat this till all the files are mailed
MainPratik.xaml (8.2 KB)
Mark as solution and like it if this helps you
Happy Automation
Best Regards
Er Pratik Wavhal