Creating Notify activities

concept australia Updated Mar 12, 2026 1 min read c_CreatingNotifyActivities.md
Raw file servicenow.com

Create custom Notify workflow activities to do more than the single action, such as starting a phone call, that the default workflow performs.

Use event handler functions in each Notify activity definition to design your own activity behavior. For example, you can set the activity result if the caller hangs up by using the onCompleted function.

JavaScript
onCompleted: function() {activity.result = 'call_ended';},

When creating a new Notify workflow activity, follow these design principles.

  • Within onExecute event handler function, create a new NotifyAction object. Use this object to create a simple or complex action, then serialize the object to the notify_wf_activity table.
  • Within the onUpdate event handler function, deserialize the NotifyAction object from the notify_wf_activity table and use this object to perform any other operations.
  • Use the other event handler functions and the Notify as needed to implement the desired activity behavior.

Parent Topic:Notify workflow activities

Related topics

NotifyAction - Global

Search documentation
Search document titles and file paths on the australia branch