Save attachment from outlook with the format filename + domain+date received

Hi there,

I am new to Uipath.
Try to build my first automation project.
I have built the routine to download PDF file from outlook.
but I would like to add another step to rename the file as per below format:
original file name + Domain Name - string before @ +date received the email
any help appreciated thanks

@Jasmine_Liang, hi and welcome to the community.

what domain name are you refering to?

Refer to this link, for saving the mail with date

the domain refer to the sender’s email address i.e. domain name for admin@uipath.com.au is uipath.

I used the workflow you forwarded but it does not download any attachment to the defined path.

No error.

thanks

or can i use the file path to define the attachment name.
i.e.
“D:\xx\New folder"+ Path.GetFileNameWithoutExtension(attachmnt.Name)+”_"+DateTime.Now.Date.ToString(“dd-MM-yyyy”)+Path.GetExtension(attachmnt.Name)

but this return an error Save Attachments: Object reference not set to an instance of an object.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.