ServiceNow Cheat Sheets · LessonBy Sneha I, ServiceNow Trainer, 8 yrs · Published · current release · reference
Scripting cheat sheet
Client vs server context and the objects you use.
Quick answer
Know where your code runs and which objects are available.
Key takeaways
- Server side
- Client side
- Rule of thumb
Know where your code runs and which objects are available.
Server side
gs, logging, user, utilities.GlideRecord, database access.current/previous, in business rules.
Client side
g_form, read/write fields on the form.g_user, current user info.GlideAjax, call the server.
Rule of thumb
Security and data integrity belong on the server. The client is only for UX.
Quick check
+0 XPStreak ×0
Question 1 of 2
Which object edits fields on a form?
Frequently asked questions
What does the term Scripting cheat sheet refer to in ServiceNow?
Know where your code runs and which objects are available.
Practise this on your own free instance.