Skip to content

Commit 3aed752

Browse files
authored
Create readme.md
readme.ms file has the instructions on how the script is working.
1 parent f251bf4 commit 3aed752

File tree

1 file changed

+15
-0
lines changed
  • Background Scripts/Prevent unnecessary notifications from being sent out

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Created a background script to prevent unnecessary notifications from being sent out.
2+
It helps in managing the volume of emails being sent so that we do not send the notifications even by mistake.
3+
This script is mostly used in dev or uat to avoid any notifications being sent from lower instances.
4+
5+
We are querying the sys_email table to find all the emails with below queries:
6+
--> emails with state as "ready"
7+
--> emails that were created on today (optional query, if not added all the mails with state as "ready" will be considered for getting ignored.)
8+
9+
Post query we are setting as below:
10+
--> state of the email to "ignored"
11+
--> type of the email to "send-ignored"
12+
13+
After setting the fields we are updating the records.
14+
15+
Please be cautious while using the script in Production environment.

0 commit comments

Comments
 (0)