I am trying to save each email attachment to different folders using the attachment name.
Which email activity are you using? Have you tried using the Save Attachments activity?
Use Save Attachments activity to download the files in one location as @monsieurrahul said
Assign a String
FileList = Directory.GetFiles(Path of the folder)
ForEach to loop into files
Based upon the Attachment Name Use Move File Activity and provide the path of the folders you want to place
Hope this helps you
Please I am still confuse on how the files are moved to the folders. while looping through the files.
P.S: I am a learner
Check the snippets in studio, you will find the workflow to retrive the file names in the directory
Determine your logic inside the if condition
That will helps you