Save email attachments into folder named as employee code extracted from the email subject

I my bot is reading emails & saving them locally. I recently modified it and now I want to split the subject and extract the employee code. I have done both of these steps. How do I save it in a folder the same as the employee code? for all of the emails.if the email has code 1234 the file should be saved in the folder named as 1234


I can’t upload my code as I am a new user

hi @Deehay,

  1. Take an string Variable say savepath - This path will store the attachment.

  2. use an Assign activity and Create Dynamic path as shown in screenshot.

  3. Use an save Attachment Activity and pass the mail object and the savepath.


Mukesh

image