File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Core ServiceNow APIs/GlideSystem/New Additional Message API Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1+ //Table: Incident
2+ //When to Run: After update
13( function executeRule ( current , previous /*null when async*/ ) {
24
3- gs . addHighMessage ( "This is high priority" ) ;
4- gs . addLowMessage ( "This is low priority" ) ;
5- gs . addModerateMessage ( "This is moderate priority" ) ;
6- gs . addSuccessMessage ( "This is a success message" ) ;
5+ if ( current . priority == 2 )
6+ gs . addHighMessage ( "This is a high incident, and assign it as soon as possible." ) ;
7+ if ( current . state == 6 )
8+ gs . addLowMessage ( "The incident will be marked as closed automatically after 7 days." ) ;
9+ if ( current . state == 6 )
10+ gs . addModerateMessage ( "Refer to the resolution information section for the resolution notes." ) ;
11+ if ( current . assigned_to . changes ( ) )
12+ gs . addSuccessMessage ( "The notification has been sent to the assignee." ) ;
713
814} ) ( current , previous ) ;
You can’t perform that action at this time.
0 commit comments