Record Assignment Notification

Sugar can be configured to send Email Notifications to a user whenever another user assigns them a record. But in this article we are going to see how we can show notifications to users in the Sugar Notification Box on record assignment. We will use Leads,Contacts,Accounts and Opportunities module as our basis.

Adding a new Application Hook

We will create a new application logic hook which will get triggered when ever a new record is assigned to a user.

Step 1: Adding a new application hook

custom/Extension/application/Ext/notification_hook.php

Step 2: Define notification hook class

custom/Hooks/showNotifications.php

Step 6: Quick Repair and Rebuild

Finally, you will need to run Quick Repair and Rebuild in order to build your new extensions.

Advertisements

2 thoughts on “Record Assignment Notification

  1. Hi Shijin,

    The application hook path should be custom/Extension/application/Ext/LogicHooks/notification_hook.php.
    I think you have updated it by incorrectly by mistake.

    Regards
    Sidhu

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s