Path.GetFileName(item) shows compile error "Object strict on disallows implicit conversion from Object to String

Hola People!

I am trying to copy a file from folder to another folder, with a condition that contains (abc*.xlsx).

I assigned the path of the file to a string. and using a for loop.
Inside my loop, I have an if loop, that checks Path.GetFileName(item).contains(abc*.xlsx) → it shows a compile error as Object strict on disallows implicit conversion from Object to String.

Can someone pls help??

Change in the loop properties the TypeArgument (from Object to String).

Hi @PavithraSundaram

I have create workflow based on your requirement please unzip open and run I hope you will get the solution.

CopyFileOneFolderToAnotherFolder.zip (24.2 KB)

Regards,
Kommi Jeevan.

thank you for the solution.

1 Like

Cheers @PavithraSundaram If you find it useful mark it as solution and close the thread.

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