Creating Notify activities

concept brazil Updated Sep 10, 2026 1 min read c_CreatingNotifyActivities.md
Raw file servicenow.com

Default Notify workflow generally performs a single action, such as initiating a phone call. You can create custom Notify workflow activities to implement more complex functionality.

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

[bundle-crapiref.c_NotifyActionApi]

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