Pass Credential to Python code as input

Hi,

I have a process where UiPath Get credential retrieve username and password from Orchestrator.
The username and password need to be passed to a python code that logs in a system.
Is there a way to pass variables (secure string) as input to python? I get the following error:

Thank you.

1 Like

@erika.papp

Try New Object(){username,password}

Cheers

1 Like

Thanks for your reply.
I have tested but seems like password is not in the right form as an input:

Try to pass the password as a string instead. That could be done by replacing password with:

new System.Net.NetworkCredential("", password).Password
1 Like

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