Configure extension point for notifications

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 1 minute to read
  • Add or modify an Action and its functionality on the Standard ticket page for a contract request.

    Before you begin

    Role required: Admin

    • Review the configuration of the script include, scripted extension points, and widgets.
    • For more information about using and customizing the script includes, see Script includes.
    • Ensure that you've set the application scope to this application.

    About this task

    The base system ApprovalNotificationWorkspaceURLExt script provides the configuration of common actions for all request types. You can override these common actions for a specific request type or add more actions.

    Procedure

    1. Navigate to All > System Extension Points > Scripted Extension Points.
    2. Search and select the ApprovalNotificationWorkspaceURLExt extension point.
    3. In the related link, select Create implementation.
    4. On the Script Include form, update the script as required.
      1. To restrict this implementation to the practice area, add the following code to the canHandle parameter.
         appliesTo(parentRecord) {
                return <tablename of the parent record>;
            },
            /**
             * @return {String} workspace to which the user can be navigated to view the contract request from notification
             * The navigation URL is formed in runtime as '/now/' + (getWorkspaceURL return value/output)  + '/record/' + table '/' + sysID.
             *
             * For example:
             * getWorkspaceURL output is  "legal/counsel-center"
             * URL formed in runtime is '/now/legal/counsel-center/record/' + table + '/' + sysId
             */
            getWorkspaceURL: function() {
                return "legal/counsel-center";
         
            },
      2. To add a new action, update the process method.

        For reference, see an existing process method of the DefaultLegalTicketActions script include or the implementation of another practice area.

    5. Select Update.

    Result

    To see a list of available default email notifications, go to All > System Notification > Notifications and search for the Contracts Support category.