Notify Methods

This method helps to trigger a custom notification based on your requirements. You can customize your content using the following code:

Sample Request

CopiedZOHODESK.notify({
   title : "Notification",
   content : "This is a Notification—check it out!",
   icon:"failure",
   autoClose: false
});

The arguments of this method must be passed as an object containing the following attributes.

ParameterDescription
titleKey that describes the title of the notification. By default name format is <widget name> widget. Supported upto 255 characters.
content *Key that describes the text content inside the notification.
autoClose

This key is deprecated. To set this auto-close functionality in desk, follow the path:

Desk > My Information icon > Preferences > Accessibility Controls > Learning > Toast Notification > Configure

iconKey that defines the type of notification. By default, the value is failure. Possible values are success or failure.