How to get Name

I use save attachment activity. Now I want to read those attachments but how know files name

@vishal22landge attachment is a array in case of emails.
You have to loop through it and there you get name property of every item in it where you can get the name.

@vishal22landge

When you use the save attachment activity you pass one path. save that path in one variable say varSavePath

Use the below code to get all the file names with path

Directory.GetFiles(varSavePath)

  • It will give you an array of all the files saved in a folder.
  • Then use for each activity and in the body write the code to read the file.
1 Like