File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Background Scripts/Prevent unnecessary notifications from being sent out Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments