Skip to main content

         This documentation site is for previous versions. Visit our new documentation site for current releases.      

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Adding a custom notification channel

Updated on September 10, 2021

Pega Platform™ delivers notifications over the default web gadget, email, and mobile push channels. Additionally, you can customize notification channels to meet application requirements such as sending notifications as phone text messages or as posts on Facebook or on other social media.

Creating a channel

Create a channel by extending the Pega-Notification class and the Data-Notification-Preference class.

  1. Extend the Pega-Notification class:
    1. In the Records Explorer, click SysAdmin > Class.
    2. Filter the Class Name column by Pega-Notification, and open the Pega-Notification class.
    3. Click Save As to save the class with the name of your new channel, for example, Pega-Notification-SMS.
  2. Extend the Data-Notification-Preference class.
  3. Update the pyGetNotificationChannelClass map rule:
    1. Add the new channel name to the rule.
    2. Add the run-time class as the new processing class.
    3. Add the preference class that you created.
  4. Clear the D_pzGetListOfChannels data page.
  5. Override the pySendNotification activity that belongs to Pega-Notification class into your new class.

Configuring a channel

You can configure a channel when you define an instance of the Notification rule. To make the configuration options available on the Notification rule form, do the following steps.

  1. Extend the Embed-NotificationChannel class.
  2. Override the pyDefault data transform:
    1. Save the pyDefault data transform into the created class.
    2. Set the pyChannelName property to the name of your channel, for example, SMS.
    3. Set the pxChannelRank property value to a numeric value, for example, 2. This number determines the order of the channel in the notification rule form.
  3. Override the Validate activity to validate input in the pyChannelConfiguration section.
    1. Save the Validate activity from the Embed-NotificationChannel class to the newly created class.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us