InterviewSolution
Saved Bookmarks
| 1. |
What is the right approach to get the details of the current logged in users in the ServiceNow at client script? |
|
Answer» ASSUMING the database name of the ServiceType field is "u_servicetype", this should work: VAR gr = new GlideRecord('sys_user'); Note that this might have a slight UI delay since gr.get is doing SYNCHRONOUS AJAX call. You can do it asynchronously with a gr.query and a callback function, as: var gr = new GlideRecord('sys_user'); |
|