The Microsoft Dynamics CRM Blog
News and views from the Microsoft Dynamics CRM Team

LinkedIn to Microsoft Dynamics CRM

LinkedIn to Microsoft Dynamics CRM

  • Comments 14

Guest blogger CRM MVP Matt Wittemann is the director of the CRM practice at Customer Connect and has been working with CRM since it was first released. Matt has a passion for helping businesses get more profitable and efficient through the effective use of CRM tools and improved processes.

LinkedIn is slowly releasing APIs to allow developers to integrate their popular business networking site with external applications. One of the first widgets they’ve released is the LinkedIn Company Insider. This widget allows web sites to show LinkedIn connections from a given company from within the context of the web site. More information is available at http://www.linkedin.com/static?key=developers_widget_companyinsider.

Of course, this would be tremendously helpful to salespeople who are trying to find the inside track when working a Lead in Microsoft Dynamics CRM. The following sample shows how to integrate this LinkedIn widget with CRM so it shows in an iFrame on the CRM Lead form.

The result is that you can open a Lead record and the iFrame will show you how many LinkedIn users work at the Lead’s company. You can click on them to open a new window to view all the connections, and, of course, you’ll get the most out of the widget if you have a LinkedIn account so you can reach out to these people in your sales process.

clip_image002

(Isn’t it cool that the top three people that come up for Microsoft are all CRM folks? Sorry Phil, Jim and Menno! I needed a real world example to show the functionality of this widget!)

To install this widget in CRM, create an iFrame on the Lead form. There’s plenty of documentation on the web and in the SDK on creating iFrames for CRM, so I won’t go into the steps here. But make sure to place a check next to the option to pass parameters to the iFrame and remove the checkbox that restricts cross-frame scripting. You might also want to set the iFrame to be 4 or more rows high and expandable to fill any available space.

In my sample, I named the iFrame “linkedin” and I pointed it at my custom HTML page, which I put in the handy ISV folder inside the CRM web site. In previous versions of CRM, developers had to venture into unsupported territory and create their own custom folders inside the CRM web site folder structure, but in 4.0 there’s a handy ISV folder. Place a simple HTML page in the ISV folder with the following code, and point your new iFrame at this page by using a relative URL like “/ISV/linkedin.html” (be sure to replace the file name with whatever you’ve called your HTML page).

The HTML:

<html>

<head>

<script src="http://www.linkedin.com/companyInsider?script&useBorder=no" type="text/javascript"></script>

</head>

<body>

<center>

<span id="getlinkedin"></span>

</center>

<script type="text/javascript">

var parentForm = parent.frames.document.crmForm;

new LinkedIn.CompanyInsiderBox("getlinkedin",parentForm.all.companyname.DataValue);

</script>

</body>

This simple code in your HTML page references a javascript file housed on LinkedIn’s server, and the script in the body of the page gets the value from the Company Name field on the Lead. (This won’t work if the Company Name field is empty or missing from your Lead form – you can also consider adding some error checking to this sample for your production environment.)

Cheers,

Matt Wittemann

  • PingBack from http://www.travel-hilarity.com/airline_travel/?p=5820

  • Hi Matt,

    Great post. I implemented it immediatly.

    While doing that, I (ofcourse) did not read the complete post and just dived into it...

    I added the iframe to accounts and your HTML file into the ISV folder, and it din't work...

    That's because you put it on leads.

    So I had to change the line in the HTML:

    new LinkedIn.CompanyInsiderBox("getlinkedin",parentForm.all.companyname.DataValue);

    into:

    ("getlinkedin",parentForm.all.name.DataValue);

    The account does not have a companyname, but a name.

    Thanks again, I just wanted to share this if others run into the same problem...

  • Hi Matt, we recently built a add-in that exports contacts from CRM and uploads them into LinkedIn to query LinkedIn and find out whether the contact's are LinkedIn members. It's not much of a feature yet because LinkedIn are a little shy about their APIs - in fact, although I've been asking them for two years, I didn't know they had released any yet - let me know where you found the Company Insider API.

    Thanks, Neil

    www.increasecrm.co.uk

    www.linkedin.com/in/neilbenson

  • This is a excellent little widget, it definately will come in handy when "researching/stalking" potential leads!

    thanks

    Jonathan

  • As a newbie to coding, this all makes sense to me... except all the references to "ISV Folder."  Where is this ISV folder so that I can copy the HTML into it?

    Thanks!

  • As a newbie to coding, this all makes sense to me... except all the references to "ISV Folder."  Where is this ISV folder so that I can copy the HTML into it?

    Thanks!

  • The ISV folder is located in the root folder of the CRM website on your CRM server.

  • This is great! Have you found how to pull LinkedIn information on a Concact record or a list of potential hits?

    I found http://www.linkedin.com/static?key=developers_widget_profileinsider.

    Thanks!

  • thank you for sharing

  • thank you for sharing

    ------------------------

    <a href="http://www.nganhangonline.com">thong tin ngan hang</a>

    <a href="http://nganhangonline.com/ngan-hang-dong-a-dongabank.html">dongabank</a>

    <a href="http://www.nganhangonline.com/ngan-hang-ngoai-thuong-viet-nam-vietcombank-vcb.html">Vietcombank</a>

    <a href="http://www.nganhangonline.com/ngan-hang-cong-thuong-viet-nam-vietinbank.html">Vietinbank</a>

    <a href="http://www.nganhangonline.com/ngan-hang-a-chau-acb.html">abcbank</a>

  • Hello -

    Thanks for the information, however when I create the iFrame for CRM and LinkedIn, all I see is a link to signin to LinkedIn, not the information from LinkedIn.  Any idea why this would be the case?

    Thanks,

    Lawrence

  • No need for separate html pages.

    Get LinkedIn contact information by searching on contactname:

    LinkedIn_url = "www.linkedin.com/.../dir + crmForm.all.lastname.DataValue + "&first=" + crmForm.all.firstname.DataValue;

    crmForm.all.IFRAME_LinkedIn.src = LinkedIn_url;

  • I just used this in an online 2011 prototype for a workshop. Added the html as a web resource. Worked without dramas. Freakin' awesome

  • please add me as a new one.

Page 1 of 1 (14 items)
Leave a Comment
  • Please add 8 and 3 and type the answer here:
  • Post