can any on let know
In your workflow, mailpath
will give you an array of filenames.
Run a For Each
loop on the mailpath variable to get individual filenames.
2 Likes
@RPAForEveryone i need to open that saved file in another workflow so how can i know the correct file name which i saved from the mails
Just put a check for file name.
For Each filename in mailpath
If filename.equals("your expected filename")
→Then invoke workflow | Else Skip
One important thing to remember is that the filename variable will be the full path of the file (i.e. C:\Users\Nisal Tharusha\Desktop.…)
- If you want just the filename, extract it using this code:
Assign → filenameOnly = filename.Substring(filename.lastIndexOf("\") + 1)
Use filenameOnly variable which will remove the folder path. - If you are not sure what the exact filename is going to be, change the
if
check in the above code fromfilename.Equals
tofilename.Contains
method.
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.