Selector as a variable question

Hi,
Can I pass the entire selector as a variable in the strict selector field?
For example

When I do it with {{var}} syntax I am getting an error.

Can you help?

Thank you

Yes, you can. But Why tho?

Dont user the {{ syntax, just use the name of the variable.

It did not work, so changed manually. Thank you.

Yes you can. You would just put the variable itself into the Strict or Fuzzy Selector property of the activity.

You need to store the data in a variable and then pass that variable into strict selector…passing entire strict selector is not correct. Just replace the value of an required attribute with the variable @A_Learner

Regards

I tried. It is just not allowing me saying invalid xml syntax. Probably because I have wild cards in the selector variable?

Thanks a lot,

Show us the value you have in the variable.

Sure it is. It works just fine.

@A_Learner

you can pass whole selector as variable

but are you adding any variable again using {{}} inside the selector? if yes that is wrong…whole of the variable should contain the selector string directly

verify the string you are passing by logging it to check any issues with it

cheers

1 Like