Dynamic Selector With Variable

Hello
Quick question regarding a string like: in_ViewingSelection = “My Team’s Open Cases”
When I put the variable into selector I get : Click ‘Viewing Selection’: Value for property [Target.Fuzzy selector] is not a valid XML syntax.

What do I need to do regarding the apostrophe in selector?
I tried: aaname=‘“+in_ViewingSelection+”’
Thank you in advance.

@michael.zura

Please replace apostrophe with '

str=str.Replace("'","'")

cheers

@Anil_G
Thank you so much. Much appreciation for the quick response.
Regards

1 Like

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