Udostępnij za pośrednictwem


Adding LinkedIn Contact Searches

LinkedIn is fairly popular business networking tool that allows you make connections and take advantage of relationships based on those connections. You can send messages and request to many connections. Since these relationships exist across multiple companies with individuals you’ve never had contact with, they provide you with a market to search for new customers, new employers/employees, and new business partners. Since you probably have lots of your contacts in your CRM system, its likely you might want to add them as LinkedIn Contacts. Doing so will give you the view into other relationships they might have as well as you can make a connection to them that will extend past your CRM.

Microsoft Dynamics CRM allows you to do various customizations to the existing application. One type customization is to modify the user interface. I’ve added a button to the contact forms that will open up Linked In and auto search for your contacts name. Notice also you could do this on a Tab with an IFrame if you prefer. In that case, you would set the jscript to dynamically specify the IFrame URL in the form load event.

team1

When you click on the button, it will launch the Linked in public search with the contacts first and last name.

 team1

To add the button you will need to modify the ISV configuration xml. We’ll need to add some jscript to construct the LinkedIn url using the first name and last name of the contact.

The public search url is <www.linkedin.com/pub/dir/?last=White&first=Jon> . If you already a member you can use the more advanced search,
<www.linkedin.com/search?pplSearchOrigin=GLHD&keywords=jon+white&search>=.

I’ll show you the script for the public search.

Let’s look at the javascript first.

var first='&amp;first=';
var FName= crmForm.firstname.DataValue;
var LName = crmForm.lastname.DataValue;
var LinkUrl='www.linkedin.com/pub/dir/?last=';
LinkUrl+=LName;
LinkUrl+=first;
LinkUrl+=FName;
window.open(LinkUrl);

Notice we are using the CRM document object model to grab fields off the form. Next we need to add to the ISV Config settings.

The first step here is to export your ISV XML.

team1

After you export the file, open it up and edit the xml. To add a button to the contact toolbar, you need to edit the Contact element and add the Button element to it. See below.

<Entity name="contact">

          <ToolBar ValidForCreate="0" ValidForUpdate="1">

            <Button Icon="/_imgs/ico_18_debug.gif"

                    JavaScript="var first='&amp;first=';var FName= crmForm.firstname.DataValue;var LName = crmForm.lastname.DataValue;var LinkUrl='www.linkedin.com/pub/dir/?last=';LinkUrl+=LName;LinkUrl+=first;LinkUrl+=FName;window.open(LinkUrl);">

            <Titles>

                <Title LCID="1033" Text="Search Linked In" />

              </Titles>

              <ToolTips>

                <ToolTip LCID="1033" Text="Search Linked In." />

              </ToolTips>

            </Button>

          </ToolBar>

        </Entity>

Keep a back up of you original in case you make a mistake.

Next you’ll just need to import the changes. That’s it. Now you can start using LinkedIn to search for you Dynamics CRM contacts.

See the software development kit for further details

Microsoft Dynamics CRM SDK Download

-cheers
jow

Comments

  • Anonymous
    April 07, 2009
    PingBack from http://asp-net-hosting.simplynetdev.com/adding-linkedin-contact-searches/

  • Anonymous
    April 07, 2009
    LinkedIn is fairly popular business networking tool that allows you make connections and take advantage

  • Anonymous
    April 24, 2009
    Exported the ISV config but there is no Contact Element.  We are vanilla at this point so I have little context as to where to place your script.

  • Anonymous
    May 11, 2009
    The comment has been removed

  • Anonymous
    May 27, 2009
    The comment has been removed

  • Anonymous
    May 31, 2014
    I am looking for a very good highly paying job in production . I have seventeen years of production experience. I live in Tuscaloosa . My no. is (2050496-4522 thank you linkedin .com. My email is mj92307@gmail . com and tonycarter1974@yahoo.com