How to use a Variable in Screen Descriptor using Coded Workflow?

Hi UiPath Forum!
I have a problem when I try to use a variable as URL of a IScreenDescriptor from the object repository.
I wrote a variable in the url of the screen descriptor and the same in the Execute method of the coded workflow (C#)


This way return an error.
What is the right way to input a variable in the ScreenDescriptor URL?

I also tried to input the variable as usually do when I have any other activity (like click), in the Options.Variales = new Dictionary<string,string>{}.


But unfortunately it does not work. Return an error which says “Requested URL is invalid, value is null”

Have an additional variable and assign the value to it and in the descriptor assign that new variable
Try this if it works !

I tried it too, it works for low-code workflows, but not for coded workflow.


Or do you mean a different way?