How to use Argument in Selector

I want to use the Argument into Selector to activate the application as per Argument value.

In Below screenshot I want to activate the application as per company code which is stored in Argument. 868 is my code where i need to use Argument.
image

FileName is my Argument

This Company code will always change as per request.
image

@nm09011985
have a look here:

1 Like

@nm09011985,

https://dotnetbasic.com/2019/07/dynamic-selectors-in-uipath.html.

Also, In the Latest Update of Uipath, You can always rightClick on the variable and Update it .


Mukesh

Hi @nm09011985,

First of all you have to assign a variable whose value will be that argument.

Now, please erase the portion of the selector, which you want to make a dynamic one. Then press and hold the ‘ctrl’ key and press ‘space’ key. Now you will find all the variable available in that particular scope. Select your assigned variable for that field.

Now you are all set to go.

Thanks & Regards,
Apurba

1 Like

HI @nm09011985,

  1. Assign code to Argument

  2. Go to activity which You want to use, select selctor, copy it and delete from properties.

  3. Press “…” to open
    image

  4. Inside Expression Editor Open " " and pass selector between. Everything need to be in one line.

  5. Edit selector
    “<wnd app=‘bw.exe’ cls=‘AfcFrameOrView80u’ title='DMB [User: *][Company:”+YourArgumentHere+"[Model:001] … "

  6. Click ‘ok’

Please mark as solution if helped.
Regards,
A

1 Like

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