Notification in Business rules using Zoho Deluge script - > 10.6

Notification in Business rules using Zoho Deluge script - > 10.6

In 10.6, we don't have a separate option to notify technicians under the Business rules option. However, we have introduced something called custom action where more actions could be accomplished.

As for notifying a technician/somebody when a Business rule is executed, you can use the below Deluge script under custom action. In the Business rule, click on select custom action - > custom function and save the below script as shown in the attachment.

requestID = requestObj.get("id");
requester_details = requestObj.get("requester");
request_details = requestObj.get("request");
sendmail
[
                from: "
abc@xxx.com"
                to: "
cde@yyy.com"
                subject: "HELLO TEST"
                message: "Hello, Thank you for reaching out to us. We have received your email and created a ticket to track your question. Your ticket number is " + requestID + ". We will respond within 24 hours. Please respond to this email if you have additional questions. Have a great day, Test Tickets"
];
returnObj = Map();
returnObj.insert("result":"success","message":"Mail sent successfully");
return returnObj;
                New to ADManager Plus?

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to update E-mail Id(s) To Notify using business rules

                      This is a sample python script to update the E-mail Id(s) To Notify during request create/update based on certain criteria using Business Rules Prerequisite: The SDP-MSP server should be configured to execute python script. Steps available here.  ...
                    • Notification script using Custom function in custom trigger

                      This is applicable from 10600 builds. From 10600 , Business rules dont have Email notification feature. The same use case be achieved through Custom triggers feature as mentioned below. Script to enable notification of request creation using custom ...
                    • Business Rule is not working

                      There are a few configurations that need to be checked for business rules.  1. Account/Site Check the request Account & Site, Now, go to Admin>Business Rules>Filter the Account & Site and make sure the Business Rules is created for the same  2. Rule ...
                    • Account based technician notification work around.

                      Please note this is applicable only to those Accounts that has only one site. In order to receive technician notification on request creation, for a particular account, we have a work around here. Since there is only one site under this account, you ...
                    • Which rule is executed first - Business Rule or Custom Trigger ?

                      When both Business Rule and a Custom Trigger is applied in an application, its the Business Rule that will be executed first before the Custom Trigger execution. Business rules will be executed - Before the ticket is created. Custom triggers will be ...