From 923130f577921749b8391114094f5396fdb99c03 Mon Sep 17 00:00:00 2001 From: JAHNAVI THONDEPU <95975610+jahnaviT2003@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:24:02 +0530 Subject: [PATCH 1/5] Create README.md --- GlideSystem/Dynamic Email Notification/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 GlideSystem/Dynamic Email Notification/README.md diff --git a/GlideSystem/Dynamic Email Notification/README.md b/GlideSystem/Dynamic Email Notification/README.md new file mode 100644 index 0000000000..c7da61705f --- /dev/null +++ b/GlideSystem/Dynamic Email Notification/README.md @@ -0,0 +1,2 @@ +USE CASE: send a custom email directly from a script. +Triggers a scheduled email event dynamically using eventQueueScheduled() From 2eecd464f3acf593fa417e78c2edd2f38dac4a93 Mon Sep 17 00:00:00 2001 From: JAHNAVI THONDEPU <95975610+jahnaviT2003@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:25:30 +0530 Subject: [PATCH 2/5] Create dynamicEmail.js --- GlideSystem/Dynamic Email Notification/dynamicEmail.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 GlideSystem/Dynamic Email Notification/dynamicEmail.js diff --git a/GlideSystem/Dynamic Email Notification/dynamicEmail.js b/GlideSystem/Dynamic Email Notification/dynamicEmail.js new file mode 100644 index 0000000000..86b33d0817 --- /dev/null +++ b/GlideSystem/Dynamic Email Notification/dynamicEmail.js @@ -0,0 +1,5 @@ +(function() { +var subject = 'Incident Update'; +var body = 'Hello, this is an automated update for your incident.'; +gs.eventQueueScheduled('custom.email.event', current, subject, body, new GlideDateTime().addSeconds(10)); +})(); From df6222e461f4499850d56167e5da459ec546e5b9 Mon Sep 17 00:00:00 2001 From: JAHNAVI THONDEPU <95975610+jahnaviT2003@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:54:05 +0530 Subject: [PATCH 3/5] Create README.md --- Business Rules/Decision Table API/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 Business Rules/Decision Table API/README.md diff --git a/Business Rules/Decision Table API/README.md b/Business Rules/Decision Table API/README.md new file mode 100644 index 0000000000..ab92760ece --- /dev/null +++ b/Business Rules/Decision Table API/README.md @@ -0,0 +1 @@ +Integrate Decision tables via business rules to update CSF pillar and CSF Domain on Risk Record based on CSF Capability From 1488c1c580623372bf09cf727f430986ae0f21f8 Mon Sep 17 00:00:00 2001 From: JAHNAVI THONDEPU <95975610+jahnaviT2003@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:59:25 +0530 Subject: [PATCH 4/5] Create decisionTable.js --- Business Rules/Decision Table API/decisionTable.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Business Rules/Decision Table API/decisionTable.js diff --git a/Business Rules/Decision Table API/decisionTable.js b/Business Rules/Decision Table API/decisionTable.js new file mode 100644 index 0000000000..251ec44f4b --- /dev/null +++ b/Business Rules/Decision Table API/decisionTable.js @@ -0,0 +1,11 @@ +var sysID = 'custom_sys_id'; + var dt = new sn_dt.DecisionTableAPI(); //Calling Decision Table API + var inputs = new Object(); + inputs['u_csf'] = current.u_csf_capability; //Map to Decision Table Question Inputs + var response = dt.getDecision(sysID, inputs); + if (response != null) { + var csfDomain = response.result_elements.u_csf_domain; + var csfPillar = response.result_elements.u_csf_pillar; + current.u_csf_domain = csfDomain; + current.u_csf_pillar = csfPillar; //works well for multiple permutations and combinations on Risk Record + } From ff3d7f0f8d612f703965439a98ee0ae1e9f5db54 Mon Sep 17 00:00:00 2001 From: JAHNAVI THONDEPU <95975610+jahnaviT2003@users.noreply.github.com> Date: Sat, 18 Oct 2025 20:00:57 +0530 Subject: [PATCH 5/5] Update README.md --- Business Rules/Decision Table API/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Business Rules/Decision Table API/README.md b/Business Rules/Decision Table API/README.md index ab92760ece..cdedb4fc25 100644 --- a/Business Rules/Decision Table API/README.md +++ b/Business Rules/Decision Table API/README.md @@ -1 +1,3 @@ -Integrate Decision tables via business rules to update CSF pillar and CSF Domain on Risk Record based on CSF Capability +Integrate Decision tables via business rules to update CSF pillar and CSF Domain on Risk Record based on CSF Capability. +If the business have any multiple permutations and combinations for OOB fields CSF Capability, CSF Domain, CSF Pillar- +Before, Insert/Update BR and specify your conditions based on update