From 17619e8e1d9d4f29da6cb4706696886a369d83fa Mon Sep 17 00:00:00 2001 From: Thrizvi <145013431+Thrizvi@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:00:34 +0530 Subject: [PATCH 1/2] Create 10 records of Incident 10 records of Incident to show --- .../Limit Incident/10 records of Incident | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Server-Side Components/Background Scripts/Limit Incident/10 records of Incident diff --git a/Server-Side Components/Background Scripts/Limit Incident/10 records of Incident b/Server-Side Components/Background Scripts/Limit Incident/10 records of Incident new file mode 100644 index 0000000000..5248ec84df --- /dev/null +++ b/Server-Side Components/Background Scripts/Limit Incident/10 records of Incident @@ -0,0 +1,6 @@ +var op = new GlideRecord('Incident'); +op.setLimit(10); +op.query(); +if(op.next()){ +gs.print('10 Records of Incident are :"+ op.number); +} From ce446e22f5c4b7e44d556fe619956208d51b02be Mon Sep 17 00:00:00 2001 From: Thrizvi <145013431+Thrizvi@users.noreply.github.com> Date: Mon, 13 Oct 2025 12:02:16 +0530 Subject: [PATCH 2/2] Create Readme.md fetch certain number of record --- .../Background Scripts/Limit Incident/Readme.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Server-Side Components/Background Scripts/Limit Incident/Readme.md diff --git a/Server-Side Components/Background Scripts/Limit Incident/Readme.md b/Server-Side Components/Background Scripts/Limit Incident/Readme.md new file mode 100644 index 0000000000..bccfb54fad --- /dev/null +++ b/Server-Side Components/Background Scripts/Limit Incident/Readme.md @@ -0,0 +1 @@ +This script is for to showcase only 10 Incident. This is useful when you want to fetch only certain number of records from the table.