Summary:
The purpose of this whitepaper is to provide instruction on how to embed a dynamic URL into a SageCRM On-Screen Notification. The dynamic URL is actually a merge field being pulled into the notification. In the following print screen you will notice there are a set of notifications related to a Web coming into SageCRM’s Web to Lead functionality. A notification has been created on the Lead table to notify the SageCRM user that a Lead has come in from the website AND that they can “Click HERE to GO to Clients WEBSITE”.
So, the notifications serve a dual role, if the non-hyperlink portion of the message is clicked the SageCRM User is taken to the actual Lead record within SageCRM. The following print screen shows that if the SageCRM user mouses over the “You have a lead from the website” portion of the Notification the information portion of the Internet Explorer browser shows a link taking the SageCRM user to the actual lead record related to this specific notification.
If the “Click HERE to GO to Clients WEBSITE” portion of the Notification is clicked the user will be taken to the Lead’s website. The following print screen shows that when you mouse over the “Click HERE to GO to Clients WEBSITE” the information portion of the Internet Explorer browser shows where the SageCRM user will be taken to.
When you click on the normal text of the notification you will be taken to the associated record. As shown in the following print screen I clicked on the highlighted portion of the following screen shot which took me from My CRM | Calendar tab to the Lead record associated to that specific notification.
A pdf file has been created for users to take these instructions with them, click here to download the pdf.
Assumptions:
This only requires the use of SageCRM and it’s out of the box notification functionality.
Prerequisites:
SageCRM 6.2 (This has worked on earlier versions of SageCRM all the way back to SageCRM 6.0)
Installation Instructions Overview:
There are a couple of parts to this process. Here is an overview of the parts required.
Part 1: Identify which URL field will be used (Either a New field or an Existing field)
Part 2: Build On Screen Notification
Part 1: Identify which URL field will be used (Either a New field or an Existing field)
The first part of this process requires identification of which URL field will be used and from which entity. This field can be any existing field that is defined as a URL field type within SageCRM. In addition, it can be a new custom field added to an Entity. An example of where this has been applied. We had a client who needed to keep track of a specific contract document that was stored off site at their outsourced Document Management site. When a document was added to the off site location a URL would be sent to the user that uploaded the document. It was the responsibility of the user to copy the provided URL and go to the associated opportunity and use the provided workflow button and provide the contract URL for the specific opportunity. This was achieved by adding a URL field to first the Opportunity and then the Opportunity Progress tables of SageCRM. And then add a step to the clients custom workflow process to provide the URL for the associated contract. Once the contract URL was provided additional workflow buttons appeared which allowed for the CRM user to progress the Opportunity to the stage of approval process. During the approval process this custom URL field was used for notifications and for tasks so that CRM.
For the following example I will use the Lead Entity and the associated Lead Company Website field (lead_companywebsite).
Part 2: Build On Screen Notification
1. Navigate to Administration | Customization | Lead entity | Notifications Tab.
2. Click the New On-Screen Notification button.
3. Enter the following information into the new on-screen notification:
| Field name: |
Field Value: |
Explanation if needed |
| Notification Name |
Lead from Web |
|
| Enabled |
“Check the box” |
|
| And/Or All: |
And |
|
| Line 1. Field |
Lead – Source |
|
| Line 1. Condition |
Equal to |
|
| Line 1. Value |
Web |
Want all Leads that come in from the Web via the Web to Lead feature to cause a notification to be sent to a specific SageCRM user. |
| Line 2. Field |
Lead – Date Created |
|
| Line 2. Condition |
Greater than |
|
| Line 2. Value |
Select a date, I chose the end of the previous year when this example was built which is 12/31/2008. |
Want only leads from a certain date going forward to notify the specific user. Think about this option in the following way, if a SageCRM customer has been using SageCRM and Web to Lead for more than a few months then all of the Leads created since the first time they started using SageCRM will cause this notification to alert the specific SageCRM user. Which more than likely will not be appreciated. So, in this example by choosing a certain date we are limiting the notifications to the current years web to leads. |
| Notify User |
Select a specific user |
For my example to always show under a specific SageCRM user I hard coded my Notify User to be my SageCRM User “AR Clerk”. A dynamic parameter such as “- - lead – assigned to user- -“ can be specified here instead of the hard coded value used in the example. |
| Notification Message |
You have a lead from the website, <A HREF="http://#lead_companywebsite#?">Click HERE to GO to Clients WEBSITE</A> |
The HTML tag will bet changed within the notification to a URL. The merge field will be pulled dynamically each time a notification is shown on the screen. Resulting in a notification with unique urls for each lead. |
The following screen shot shows what the on-screen notification configuration looks like.


a. At this point once all the values are completed click the Save button.
b. In order to test this Lead records need to be added to SageCRM with a source of “Web” and a created date greater than the date specified in your notification. Once all the conditions are met the notification will run based on your pre-defined interval in Workflow and Escalation Configuration area, the SageCRM instance used here is using the system default of 5 minutes.
c. The following print screen shows Notifications has been created on the Lead table to notify the SageCRM user that a Lead has come in from the website AND that they can “Click HERE to GO to Clients WEBSITE”.
Recap:
So, the notifications serve a dual role, if the non-hyperlink portion of the message is clicked the SageCRM User is taken to the actual Lead record within SageCRM. If the SageCRM user mouses over the “You have a lead from the website,” portion of the Notification the information portion of the Internet Explorer browser shows a link taking the SageCRM user to the lead record’s website.