Issues while attaching file

Hi there , Am a beginner in Ui Path and trying to create a workflow to send an email with the latest saved “.txt” attachment from a folder the below is my work fow nd when i try to add attachment to the mail body an error occured can someone please help me to sort this out ?

Thanks in advance



Since AttachmentsCollection accepts a variable of type String (array of strings), but I can see str_latest is of type String in your process.

Either you can try changing the variable type or you can try using Attachments property above.

Hope this helps,
Best Regards.



Maybe try the below :

1 Like

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