GlideRecord get - Did You Know

  Рет қаралды 5,209

ServiceNow Dev Program

ServiceNow Dev Program

Күн бұрын

Пікірлер: 15
@rayroulstone3565
@rayroulstone3565 2 жыл бұрын
I have used get before but didn't know it could take two inputs. This is awesome.
@SteemanCodes
@SteemanCodes 2 жыл бұрын
Great, I didn't know about two params, its awesome, Next time will use it. Thanks for sharing Chuck, Lots of love
@vemulakondasubramanyam3747
@vemulakondasubramanyam3747 2 жыл бұрын
Cool... two parameters nice feature.... can it be improved to have list of columns and list of their values ?
@ChuckTomasi
@ChuckTomasi 2 жыл бұрын
For the use case of getting specific fields/values, you might want to take a look at GlideQuery.
@samikshasaloni5913
@samikshasaloni5913 2 жыл бұрын
Thia video is very useful for me because sometimes I forget to add the query() step.. It will work for if only noy for while.Is it?
@justinjoy1701
@justinjoy1701 2 жыл бұрын
yes you only get back a single record, so no point in using while.
@aviramran157
@aviramran157 Жыл бұрын
Well known but you can't use it to update the record
@ChuckTomasi
@ChuckTomasi Жыл бұрын
As the method name implies... "get" to get information. update() is used to update a record. :) Sorry if there was any indication of misrepresenting what this video is about.
@aviramran157
@aviramran157 Жыл бұрын
​@@ChuckTomasi It's all good! I just wrote it for clarification for others
@vibhamadaan
@vibhamadaan 2 жыл бұрын
I've used it in my code.
@vkachineni
@vkachineni 2 жыл бұрын
Shorten up the code Vs Performance. How is the performance of .get() compared to .query() and .next()? Chuck, What do you prefer?
@OneAndOnlyMe
@OneAndOnlyMe 2 жыл бұрын
There should be no difference betwen .get() and .query() as ultimately they will do the same query in the database. .get() is more elegant code as you can do "if (incident.get(id))..." rather than .addQuery() then .query() then .next().
@skillz0r10
@skillz0r10 2 жыл бұрын
@@OneAndOnlyMe the fastest way to retrieve a single record is not mentioned here. If you are looking for performance, do a .query() after a .setLimit(1) followed by a if(next()). Run a background script with and without the setLimit(1) and check the difference. Specially in tables with a lot of data
@OneAndOnlyMe
@OneAndOnlyMe 2 жыл бұрын
@@skillz0r10 Having the right indexes configured is also a factor.
@fung5768
@fung5768 Жыл бұрын
Hmm, I posted a comment suggesting people not to use the Get method, and it got deleted. Really classic ServiceNow..
Condition Field Attributes - Did You Know
3:26
ServiceNow Dev Program
Рет қаралды 6 М.
Pre-filled fields - Did You Know
8:21
ServiceNow Dev Program
Рет қаралды 9 М.
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
GLIDERECORD addQuery() with 6 Examples || #servicenow #skfacts
21:17
SKFacts and ITCareers
Рет қаралды 1 М.
Understanding GlideRecord with examples in ServiceNow
29:16
Hardit Singh
Рет қаралды 8 М.
SN Utils with Arnoud Kooi - Did You Know
23:41
ServiceNow Dev Program
Рет қаралды 16 М.
Email Digests - Did You Know
5:50
ServiceNow Dev Program
Рет қаралды 4,3 М.
REST API Explorer - Did You Know
7:19
ServiceNow Dev Program
Рет қаралды 5 М.
Document ID field - Did You Know
4:04
ServiceNow Dev Program
Рет қаралды 5 М.
ServiceNow G_form setVisible vs setDisplay|| #servicenow #client_script
5:02
SKFacts and ITCareers
Рет қаралды 2,2 М.
GlideRecord in ServiceNow examples | ServiceNow GlideRecord Scripting Demonstration
10:27