locked
CRM 4.0 & Google Maps RRS feed

  • Question

  • Hi Guys,

    I've been doing a bit of searching and found some old post about how to do this so I thought I would "put the question" back out there!

    I would like to be able to show an accounts location/address from the Google maps page in CRM - I envisage this will be within an iframe in a tab against the account entity. My question is how do I achieve this - do I need java script jobs, a plug-in etc

    Any help pointers would be great - thank you =)

     

    Friday, October 16, 2009 1:16 PM

Answers

  • Got it working in the end by using the following code in the Account onLoad event:


    //Code to Show Accounts GoogleMap location in iFrame

    if (crmForm.all.address1_postalcode.DataValue != null)
    {
    crmForm.all.IFRAME_gmap.src = "http://maps.google.com/maps?q=" +
    crmForm.all.address1_postalcode.DataValue;
    }
    else
    {
    crmForm.all.IFRAME_NAMEOFiFRAME.src = "about:blank"
    }

    • Marked as answer by MSCRM MAN Friday, October 16, 2009 3:52 PM
    Friday, October 16, 2009 3:52 PM

All replies

  • HI,

    look here for an example:
     

    http://www.duttonsoftware.com/2008/10/04/mapping-with-virtual-earth-in-sql-server-reporting-services/


    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
    Friday, October 16, 2009 1:21 PM
  • Ok so I've been testing.

    If I simply type in a URL of “http://maps.google.com/maps?q=London" and click on the link, the web page opens to google maps and shows me London. So on this basis If I've been doing the following below it should work????

     

    I've created an iFrame called "GoogleMaps" and pasted the following code into ont he account onload.

     

    if (crmForm.all.address1_postalcode.DataValue != null)

    {

    crmForm.all.IFRAME_GoogleMaps.src = “http://maps.google.com/maps?q=” +

    crmForm.all.address1_postalcode.DataValue;

    }

    else

    {

    crmForm.all.IFRAME_GoogleMaps.src = “about:blank”

    }

     

    Once I've published the changes and go to test, the iFrame is just showing as "Page cannot be displayed". What have I done wrong or in fact will this solution not work?

     

     

    Friday, October 16, 2009 1:50 PM
  • You should look at Microsoft Virtual Earth....

    I know we have done some really cool stuff using silverlight and virtual earth.

    Dean Jones
    http://www.powerobjects.com
    Friday, October 16, 2009 2:32 PM
  • Got it working in the end by using the following code in the Account onLoad event:


    //Code to Show Accounts GoogleMap location in iFrame

    if (crmForm.all.address1_postalcode.DataValue != null)
    {
    crmForm.all.IFRAME_gmap.src = "http://maps.google.com/maps?q=" +
    crmForm.all.address1_postalcode.DataValue;
    }
    else
    {
    crmForm.all.IFRAME_NAMEOFiFRAME.src = "about:blank"
    }

    • Marked as answer by MSCRM MAN Friday, October 16, 2009 3:52 PM
    Friday, October 16, 2009 3:52 PM
  • Hi,

    I wrote this blog post showing GoogleMaps integration withing MS CRM:
    http://examiningmscrm.blogspot.com/2009/11/googlemaps-within-mscrm.html

    This solution doesn't have the Google frames around the map that you will have (as I expect becouse I tried the same solution you used before).
    A little late, but maybe of some use.

    Bertil
    Sunday, November 15, 2009 9:04 PM
  • Please be aware that because a CRM application is not freely available to the public, you will require a license from Google (Google Maps API Premier). This can get very expensive. Microsoft's Virtual Earth service has similar restrictions and costs.

    Neil
    Monday, November 16, 2009 9:49 AM
    Moderator
  • sorry for my ignorance but I know you added the code to the OnLoad event, but what did you used for the http:// address required when you create the iFRAME?

    Thanks 


    Ricardo Fuentes A+ MCP MCDST MCTS MCITP
    Wednesday, January 26, 2011 8:50 PM