How to save email attachments to different specific folders

I am trying to save each email attachment to different folders using the attachment name.

Hi @okobaba :wave:

Which email activity are you using? Have you tried using the Save Attachments activity?

@okobaba

  1. Use Save Attachments activity to download the files in one location as @monsieurrahul said

  2. Assign a String FileList = Directory.GetFiles(Path of the folder)

  3. ForEach to loop into files

  4. Based upon the Attachment Name Use Move File Activity and provide the path of the folders you want to place

Hope this helps you

Thanks

1 Like

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

@okobaba

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

Thanks

1 Like