Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions GlideRecord/Choose Window for better performance/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
chooseWindow method is used to paginate the records while using Glide Record on any table.
This method allows you to paginate through records, fetching only a window (subset) of records, which can be useful for performance when dealing with large datasets.
summary : Paginate large result sets by selecting a window of records.
6 changes: 6 additions & 0 deletions GlideRecord/Choose Window for better performance/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var gr = new GlideRecord('incident');
gr.chooseWindow(0, 10); // Fetch the first 10 records
gr.query();
while (gr.next()) {
gs.info(gr.number);
}
2 changes: 2 additions & 0 deletions GlideRecord/Get link for the Record/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
getLink() generates a direct URL to the record, useful for embedding links to records in notifications or logging them.
Summary: Generate a URL link to the record.
4 changes: 4 additions & 0 deletions GlideRecord/Get link for the Record/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
var gr = new GlideRecord('incident');
if (gr.get('sys_id_of_record')) {
gs.info('Incident link: ' + gr.getLink());
}
Loading