How to convert a path string to IResource?

Hi everyone,
I’m working with Google WorkSpace Send Email
I am trying to pass a file path to attachment(s) but it has type (InArgument<IEnumerable>)

File path: D:\TEST.txt

Can you help me?
Thanks in advance,
Tuan

Hi @Tuannna1

Give a try with

yourIEvar(0)

Regards!

try adding {“path”} and check if it is accepting

other wise create one variable of ienumberable and the path to it

Regards

@LAKSHMI_NARAYANA_PEMMASAN
I tried and got the following error:

[Compiler error(s) encountered processing expression "{"D:\TEST.txt"}".
(2) : error BC36754: ‘String()’ cannot be converted to IEnumerable(Of
IResource) because ‘String’ is not derived from 'IResource’ as required for the 'Out'
 generic parameter 'T' in 'Interface IEnumerable(Of Out T)'.

Hi,

Can you try Path Exists activty as the following?

Regards,

1 Like

@Yoichi
This is the solution :white_check_mark:. Thank you very much :man_bowing:

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