We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Hi @Nivetha23jay 

You need to modify your script.

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

 Hope this helps.

Regards,

Siva