Descriptors with Variables not Working in Coded Workflows

Hello all,

When using UiPath.UiAutomation.Activities, we can include variables in our Descriptors using the {{variableName}} format. At runtime, this will place the variable’s value in the descriptor.

I have noticed that this function might not be working with Coded Workflows. Has anyone else had this experience?

Thanks,

P. Griffin

Hi @edevries

Yes, The {{variableName}} syntax is supported in UI automation activities, but it is not automatically resolved in Coded Workflows. In Coded Workflows, build the descriptor dynamically and pass the variable value directly in code instead of using {{variableName}} placeholders.

Happy Automation

Yeah, I see now in the documentation there is a .WithVariable() method.