How record.send_survey event is getting triggerd?

Kishor O
Tera Sage

What is the source of triggering the event called record.send_survey ?

 

 

KishorO_0-1722328674685.png

 

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @Kishor O,

 

Reposting as my original message is getting lost in the thread.

Check out the following Out Of Box (OOB) Business Rules which contain that event: send_survey

Business Rules: Dispatch Survey Notification Event and Dispatch Survey event (Non triggered)

 

These rules are triggered when the conditions are met on the 'When' tab. You'll notice they are triggered when a record is both inserted and updated.

What are you trying to do? Trigger an event yourself or disable/change these event conditions?

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

 

Robbie_0-1722332866685.png

 

Robbie_1-1722332866585.png

View solution in original post

8 REPLIES 8

Hi @Kishor O 

Hi @Kishor O 

The event record.send_survey is triggered by the "Dispatch Survey Notification Event" Business Rule. This rule executes when a specific condition is met, sending the survey notification. It uses the gs.eventQueue method to generate the record.send_survey event, passing the current record, user, and survey URL as parameters.

…………………………………………........................................................................................
Mark it helpful 👍and Accept Solution !! If this helps you to understand.

…………………………………………........................................................................................

Robbie
Kilo Patron
Kilo Patron

Hi @Kishor O,

 

Reposting as my original message is getting lost in the thread.

Check out the following Out Of Box (OOB) Business Rules which contain that event: send_survey

Business Rules: Dispatch Survey Notification Event and Dispatch Survey event (Non triggered)

 

These rules are triggered when the conditions are met on the 'When' tab. You'll notice they are triggered when a record is both inserted and updated.

What are you trying to do? Trigger an event yourself or disable/change these event conditions?

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.



Thanks, Robbie

 

Robbie_0-1722332866685.png

 

Robbie_1-1722332866585.png

Laxmi13
Tera Contributor

Could you please elaborate the conditions as i am unable to test this notification.
Thank you

 

Y A
Tera Contributor

Since this business rule read-only, I am unable to uncheck the Active checkbox in it. So, even if I copy and make a new similar business rule with my below mentioned changes, I won't be able to make the existing one inactive. Will they clash ?

 

I have a story :

Send feedback notification only when the assessment instance record is still in "Ready to take" state even after 10 minutes. Because this notification is not required if the user has already filled in the survey right after accepting the incident resolution. So, I want this business rule to run after a delay of 10 minutes, and then check if the assessment instance record state is "Not Complete", then only fire the event which would further send the notification.