Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

If SD contains the word 'confidential' then assigned to person alone should see that

Nivetha23jay
Tera Contributor

Hi all,

I have a requirement here, if short description contains words like 'confidential' or 'provate' then only assigned to person alone should able to see that record, i wrote one query br but it is not working completely 

1 REPLY 1

J Siva
Kilo Patron
Kilo Patron

Hi @Nivetha23jay 

You need to modify your script.

current.addEncodedQuery('assigned_toDYNAMICjavascript:gs.getUserID()^short_descriptionLIKEcinfidential')

 Hope this helps.

Regards,

Siva