can any on let know
In your workflow,
mailpath will give you an array of filenames.
For Each loop on the mailpath variable to get individual filenames.
@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
ifcheck in the above code from
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.