Skip to content

Instantly share code, notes, and snippets.

@shrutis22
Created March 3, 2016 08:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save shrutis22/cea3df9c52231fa8643f to your computer and use it in GitHub Desktop.
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