Unable to perform attach file to reply email O365 activity

Unable to perform attach file to reply email O365 activity as it only accepts type as IEnumerable(IResource) and i have filepath as string

Hi @chandresh_agarwal,

Please us this syntax in assign activity
attachments = New List(Of IResource) From {New FileResource(“C:\Temp\report.pdf”)}

Kindly mark it as solution if it helps

It didn’t worked…I used Path Exists activity and assigned output to iresource vaiable and passed it as {IResource variable} to attachments input to Reply EMail..It worked..Thanks for the help

@chandresh_agarwal

Look below thread, you can follow steps what they did in thread

If you find it helpful, mark it as solution to close this topic!!

Happy Automation!!

@chandresh_agarwal

  1. You can use path exists get output and enclose in flower brackets
  2. second way use {LocalResource.FromPath("FilePath")}

both would work

cheers