Invoke code using namespace issue

What is issue when using Invoke code with C# with namespace ?
Version : 2024.10.14 LTS , Enterprise License.

You don’t need to import namespace in C# invoke code.
Use Import Tab at bottom which you are already using.

@adi.mehare is correct.

I would also suggest that you start using coded workflows/coded source files etc, I find them easier to use.

Studio - Coded Workflow
Studio - Code Source File

2 Likes

Noted. remove namespace Works.

1 Like

Noted. Other workflow already using coded source code file. I want to try using invoke code.

2 Likes

@moonhkt

in invoke code you direct write the code no classes and imports needed

Happy Automation

cheers

Hi @moonhkt

As per my knowledge Invoke code C# does not support namespace or class blocks. Write only inline code, and use using statements or the Imports panel for namespaces.

Happy Automation

Hi @moonhkt

Now that your issue is resolved, kindly mark the post that helped you as a solution so this topic can be closed.

Thank you.