in Search

SageCRM - The Next Level

This BLOG is meant for posts that are too technical for the Accpac Community BLOG. I regularly post to a SageCRM Blog on the Accpac Community. The Mission Statement for the Sage Accpac BLOG defines that I will be posting articles of difficulty from 1 to 5. This BLOG on the DPP.SageCRM site will be for articles that are ABOVE a level of 5 in difficulty. Which means specific Technical Topics that need a longer explanation and some sort of coding beyond field level scripts.


SageCRM - LinkedIn Example - Person

Summary:

The purpose of this BLOG posting is to provide instruction on how to add in a link to LinkedIn for persons onto the Person Summary Screen.  A zipped pdf file has been created for users to take these instructions with them, click here to download the pdf.

Assumptions:

During this discussion I will be presenting how to link the Person Entry Screen to LinkedIn. 

  • Please note this code assumes that the user is always on-line, i.e. connected to the internet, errors will result if an attempt is made to use the following documented behavior without an internet connection.
  • Additionally, this code assumes that the user has a current LinkedIn account and has configured their LinkedIn login to be remembered so that the user merely has to navigate to the site to have access to their LinkedIn profile.  If the user chooses to log-in to the LinkedIn site each time they visit LinkedIn then this sample code will require this login to occur every time.

Prerequisites:

SageCRM 6.2, this code has been written in a way that will allow it to function within SageCRM on-premise and/or SageCRM.com.  There are other ways of achieving the same result which require the use of Server Side code, in an effort to make this code work for all of our existing clients I modified the code shared with me to work client side only.

Installation Instructions:

1. In order to use this customization you must navigate to Administration | Customization | Person Entity | Screens Tab | select the Person Summary Screen.
2. Once you are in the properties for the screen copy the below code and paste it into the Custom Content for Person Entry Screen:

Beginning of Code

<script>
   window.onload = function(){
   var persfirstname = document.getElementById('_Datapers_firstname').innerText;
   var perslastname = document.getElementById('_Datapers_lastname').innerText;
   var compname = document.getElementById('_Datacomp_name').innerText;
   var captpersfirstname = document.getElementById('_Captpers_firstname').innerText;
   var xlink = "http://www.linkedin.com/search?search=&lname="+perslastname+"&fname="+persfirstname+"&company="+ compname;
   var xURL =  "<a href=" + xlink + " target=_blank><img src=http://www.linkedin.com/img/icon/icon_company_insider_in_12x12.gif border=0 title='Find in LinkedIN'></a>";   
   document.getElementById('_Captpers_firstname').innerHTML += xURL;  
   }
</script>

End of Code

3. Once the code is copied into the screen, click the save button to save the screen modifications.
 

Testing Instructions:

1. To test this customization navigate to the Main Menu and find or select a Person record.
2. Once a person record is selected a LinkedIn icon should appear next to the label for the person first name.
3. Click on the LinkedIn icon, a separate screen should appear launching and navigating the user to the Person Search screen found within LinkedIn’s site.

A special thanks to the following two chaps for contributing to the final solution.  Without their assistance this would not have been possible.

Alistair Hill
Consultant
Plus Computer Solutions Ltd.
Phone: 604.420.1099
e-mail: alistair@plus.ca
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ken Schmitt
Advanced CRM Certified Consultant
London ON, Canada
e-mail: ken@schmitts.ca
website: http://s5.schmitts.ca

 

Comments

 

Jeff Richards said:

This is a very useful article and relates well to the existing LinkedIn posting "Adding a LinkedIn Widget to the Company Summary Screen" (dpp.sagecrm.com/.../adding-a-linkedin-widget-to-the-company-summary-screen.aspx)

June 17, 2009 1:39

About Lawson

Rob Lawson, a Sr. Solutions Consultant for Sage’s Accpac division is considered to be one of the true experts on the SageCRM product. Mr. Lawson has been with Sage for over 7 years and is a Sage Accpac Certified Consultant in SageCRM, Sage Accpac ERP, Sage Accpac ERP Project and Job Costing. He is also a Sage Accpac Certified Product Trainer, Sage Accpac Certified Sales Consultant, Sage SalesLogix Certified Engineer, and a Certified Pervasive Professional. He has a background in both Accounting and Information Systems and received a BBA in Accounting from Georgia State University. Currently, Mr. Lawson provides pre-sales technical assistance to customers and partners for SageCRM, Sage Accpac ERP, and Sage AccpacOnline. He also works closely with the development teams of SageCRM and Sage Accpac ERP to help bring the front line experience of the pre-sales team from the customer and partner perspective into view. While in previous positions within Sage he has provided pre-sales assistance on SageCRM.com, SalesLogix, SalesLogix Web Client, and Sage Mobile. Additionally, he regularly publishes articles for the SageCRM Community which can be found on the Accpac BLOG Community site and the SageCRM Development Partner Program (DPP) BLOG Community site. He also continues to teach the SageCRM Business Partner Community via public webinars, pre-recorded “videos on demand”, and classroom courses. Prior to joining Sage, Mr. Lawson has worked as a project manager, staff accountant and consultant for public accounting firms for eight years. This included work in areas such as sales, business analysis, implementations, customization, report writing, web site development, software and hardware support, and database conversions. In his free time Mr. Lawson enjoys playing golf, reading, and working on computers.