March 2017
Beginner
358 pages
9h 51m
English
The get() method of the GlideRecord class in a client-side scripts only accepts one argument: a sys_id. Unlike the server-side equivalent, you cannot specify a field-value pair, or query; only a sys_id.
Interestingly, though the get() method does perform an Ajax query to the database, it can only be done synchronously; it accepts no callback function. This can have performance implications, but since only a single value is returned by get(), it's probably fair to say that the impact would be minimal. Still though, if you're interested in maximizing client-side user experience and performance, it may be best to do a regular GlideRecordquery(), and simply call the setLimit() method, passing in the number 1
Read now
Unlock full access