Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Trigger which calls HipChat Notify Class
/**
* Trigger to display a message
* in HipChat when a new Case is
* created.
*
* @author Shruti Sridharan
* @since 23/02/2016
* @version 1.0
*/
trigger newCaseNotifierTrigger on Case ( after insert ) {
for( Case newCase : Trigger.new ) {
HipChatNotifier.notify( 'New Case has been Created' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment