ServiceNow Telugu Series - Episode 15 | GlideRecord in ServiceNow | ServiceNow Telugu Videos
ฝัง
- เผยแพร่เมื่อ 12 ก.ย. 2023
- For ServiceNow Live Classes, Books, Sample Resumes, 375 Interview Questions, CSA Quizzes Please visit : learn.gauthamit.com
Our Website : www.gauthamit.com
Call us: +91- 9392105004, +91- 9391452336
**ServiceNow Admin E-Book Link: learn.gauthamit.com/courses/S...
**ServiceNow Development E-Book link: learn.gauthamit.com/courses/S...
**Top 375 ServiceNow Interview Questions E-Book : learn.gauthamit.com/courses/S...
@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
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
How do we create process flow menu as header side of the view.? Can anyone help?
Excellent presentation Srinivas...great job...very useful sir
Thank you so much 😊 . Keep watching!!
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
Hi Dinesh, you can use any of the java script editors. No issue with that. Thank you !!
How download atom sir
Currently I'm working as a siebel developer. Can I learn servicenow course sir? Any suggestions for me sir.
Yes, you can learn ServiveNow. If you want to speak to me personally please visit our office. Thank u!!
How can I get this pdf book...??
Hello, u can get it from below link
learn.gauthamit.com/courses/Servicenow-Development-E-Book-64a027dee4b0c642d81a4f6d-64a027dee4b0c642d81a4f6d
Thanks
hi anna
-->incident,
-->problem
-->change
-->Knowledge
evi cheppara anna first administration then development lagaa
Hi, sure, will cover these topics also.