How do I convert a string array to IResource

Hi guys, I have an array with the attachments that I need to send by email, but the activity asks me that the attachments must be related as an IResource variable type, how can I do this?
This is how I get my array
Directory.GetFiles(“D:\RPA_Codes\Data\4685-rpa-ui-docusa-aguc\4685-rpa-ui-docusa-importacion-aguc\Data\Input\12.22.2024_HLBU9442353”, “List*.pdf”)

Hi,

Can you try the following expression?

files.Select(Function(f) LocalResource.FromPath(f))

Regards,

1 Like

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