ServiceNow Telugu Series - Episode 15 | GlideRecord in ServiceNow | ServiceNow Telugu Videos

  Рет қаралды 14,651

Gautham Digital Learning

Gautham Digital Learning

Күн бұрын

For ServiceNow Live Classes, Books, Sample Resumes, 375 Interview Questions, CSA Quizzes Please visit : learn.gauthami...
Our Website : www.gauthamit.com
Call us: +91- 9392105004, +91- 9391452336
**ServiceNow Admin E-Book Link: learn.gauthami...
**ServiceNow Development E-Book link: learn.gauthami...
**Top 375 ServiceNow Interview Questions E-Book : learn.gauthami...
‪@gauthamdigitallearning‬
In ServiceNow, GlideRecord is a JavaScript object used for database operations, such as querying, inserting, updating, and deleting records in tables. It provides a way to interact with records in the ServiceNow database using server-side scripting.
Here's a basic overview of how to use GlideRecord:
Instantiate a GlideRecord object: To work with a specific table in ServiceNow, you first need to create an instance of the GlideRecord object for that table. You can do this by specifying the table name when creating the object. For example:
javascript
Copy code
var gr = new GlideRecord('incident');
Query for records: You can use the addQuery() method to specify conditions for your query and then use the query() method to execute the query. For example, to query all open incidents:
javascript
Copy code
gr.addQuery('active', true); // active=true means open incidents
gr.query();
Iterate through records: After querying, you can use a while loop to iterate through the result set and perform actions on each record. For example:
javascript
Copy code
while (gr.next()) {
// Access fields of the record
var shortDescription = gr.getValue('short_description');
var assignedTo = gr.getValue('assigned_to');
// Perform operations on the record
// ...
}
Insert, update, or delete records: You can use GlideRecord to insert new records, update existing records, or delete records. Here are some examples:
Insert a new record:
javascript
Copy code
gr.initialize(); // Initialize a new record
gr.setValue('short_description', 'New Incident');
gr.setValue('description', 'This is a new incident record.');
gr.insert();
Update an existing record:
javascript
Copy code
if (gr.get('sys_id', 'incident_sys_id')) {
gr.setValue('short_description', 'Updated Incident');
gr.update();
}
Delete a record:
javascript
Copy code
if (gr.get('sys_id', 'incident_sys_id')) {
gr.deleteRecord();
}
Remember to replace 'incident' with the name of the specific table you want to work with and adapt the field names and conditions to your use case. GlideRecord is a powerful tool for working with data in ServiceNow, and it allows you to perform complex database operations in your server-side scripts.
ServiceNow Telugu Series - Episode 15 | ServiceNow Telugu Videos | GlideRecord in ServiceNow | ServiceNow Telugu Videos | Best ServiceNow Training | ServiceNow Course | ServiceNow Telugu Videos | Gautham Digital Learning | ServiceNow Learning | ServiceNow Telugu Video | Srinivas Sunkara | Learning ServiceNow Telugu Videos | Best ServiceNow Training in Hyderabad | Best ServiceNow Training in Bangalore | Best ServiceNow Training in Bangalore | Best ServiceNow Training in Chennai | ServiceNow Telugu Training | ServiceNow Training in Vizag | ServiceNow | Best ServiceNow Training in India | Best ServiceNow Telugu Training | ServiceNow GlideRecord

Пікірлер: 14
@gauthamdigitallearning
@gauthamdigitallearning Жыл бұрын
Hi All, For ServiceNow Live Classes, Books, Sample Resumes, 375 Interview Questions, CSA Practice Quizzes Please visit : learn.gauthamit.com Our Website : www.gauthamit.com Call us: +91- 9391452336, +91-9392105004 **ServiceNow Admin E-Book Link: learn.gauthamit.com/courses/Servicenow-Administration-E-Book-64b660b5e4b02c08d2aa4823-64b660b5e4b02c08d2aa4823 **ServiceNow Development E-Book link: learn.gauthamit.com/courses/Servicenow-Development-E-Book-64a027dee4b0c642d81a4f6d-64a027dee4b0c642d81a4f6d **Top 375 ServiceNow Interview Questions E-Book : learn.gauthamit.com/courses/ServiceNow-Interview-Questions-Your-Comprehensive-Guide-to-Top-375-Questions-for-Success-64d3644ae4b0bdefdb8013e4-64d3644ae4b0bdefdb8013e4 Thanks, Gautham Digital Learning
@babuchokka953
@babuchokka953 6 ай бұрын
Excellent presentation Srinivas...great job...very useful sir
@gauthamdigitallearning
@gauthamdigitallearning 5 ай бұрын
Thank you so much 😊 . Keep watching!!
@TSRINU-d1u
@TSRINU-d1u 23 сағат бұрын
hello sir Atom link ivvandi
@itzisabellathesnowflake2928
@itzisabellathesnowflake2928 11 ай бұрын
How do we create process flow menu as header side of the view.? Can anyone help?
@krishnaenterprises5307
@krishnaenterprises5307 Жыл бұрын
hi anna -->incident, -->problem -->change -->Knowledge evi cheppara anna first administration then development lagaa
@gauthamdigitallearning
@gauthamdigitallearning Жыл бұрын
Hi, sure, will cover these topics also.
@mahendranaidu219
@mahendranaidu219 Жыл бұрын
Currently I'm working as a siebel developer. Can I learn servicenow course sir? Any suggestions for me sir.
@gauthamdigitallearning
@gauthamdigitallearning Жыл бұрын
Yes, you can learn ServiveNow. If you want to speak to me personally please visit our office. Thank u!!
@koyaladinnaharitha4151
@koyaladinnaharitha4151 3 ай бұрын
How download atom sir
@DoraNobi24
@DoraNobi24 8 ай бұрын
How can I get this pdf book...??
@gauthamdigitallearning
@gauthamdigitallearning 8 ай бұрын
Hello, u can get it from below link learn.gauthamit.com/courses/Servicenow-Development-E-Book-64a027dee4b0c642d81a4f6d-64a027dee4b0c642d81a4f6d Thanks
@dinesh9461
@dinesh9461 Жыл бұрын
hi anna, Javascriptcodeacademy dwaracode rayocha, or atom app download. cheyala, Atom app cloud lo leda with out download, or javascript codeacademy site use chestu, cheyochaa, plss tell anna
@gauthamdigitallearning
@gauthamdigitallearning 11 ай бұрын
Hi Dinesh, you can use any of the java script editors. No issue with that. Thank you !!
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 45 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 6 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 39 МЛН
Servicenow Developer Top 50  Interview Questions and Answers | Servicenow Tutorials
59:56
GlideRecord in ServiceNow examples | ServiceNow GlideRecord Scripting Demonstration
10:27
GlideSystem
19:39
TechWithPri
Рет қаралды 4,5 М.