Onchange client script to populate Alert

Adityanshu Sing
Tera Contributor

can someone suggest onchange client script to alert when additional comment added to incident where "requested for" user is external. there is a field available in user table with name notification type which contains external user and internal user .

2 REPLIES 2

Brad Bowman
Kilo Patron
Kilo Patron

Use getReference to lookup the external/internal value

https://docs.servicenow.com/bundle/tokyo-api-reference/page/app-store/dev_portal/API_reference/Glide... 

The example given is even pretty close to what you're looking for.

Vasu ch
Kilo Sage

Hi @Adityanshu Sing 

Try below onChange client script:

Vasuch_0-1699814630227.png