Hi,
When i tried to save 2 attachment file from an email it create 2 folders with attachment names how can i save there 2 attachement files without creating a new folder but only save in a folder i want
Hi,
When i tried to save 2 attachment file from an email it create 2 folders with attachment names how can i save there 2 attachement files without creating a new folder but only save in a folder i want
Hi @Soudios you can use the save attachment activity and just pass the folderpath it will save all the attachment into folder
Condition :
currentMailMessage.Attachments.Count =2 AndAlso
currentMailMessage.Attachments.All(Function(att) att.Name.EndsWith(“.xlsm”, StringComparison.OrdinalIgnoreCase))
can you show me how you save files on the save attachment plz ?
use this condition in if activity and then part you can just use the save attachments activity
how can i save every attachment in a specific path
Ex :
path/name1.xlsm
path/name2.xlsm
Hi @Soudios
Please find the attached workflow as per your requirement and let me know if its working
SaveAttachment.zip (2.2 KB)
@Akash_Javalekar1
i need 2 save attachment because i need the path of every file, because i need to use to path later
Hi @Soudios,
Please try to give only folder path in Save Attachment activity, if you provide path with file name it create new folder and save the attachment inside that.
And to get the file path you can use the output property.
Attachment1_Name = attachments(0).ToString
Attachment2_Name = attachments(1).ToString


ok but before saving i need to compare version and know witch one is the oldest one and witch one is the latest one
ex :
Testv01.xlsm
TestV02.xlsm
it can be v53 and v52 also its not the same file i will received
You can perform the comparison of version first and if the condition is satisfied then you can use the save attachment activity to save both files.
i write this on output save attachment activity : currentMailMessage.Attachments(0).Name.ToString
But i have this error message :
You can’t pass the attachment name in output property.
Please create and new variable for the output as shown above and with help of that variable get the attachment name.
Please refer this workflow
SaveAttachment.xaml (14.4 KB)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.