Implement Bing Maps in CRM 2011

2017-12-07T12:10:17+00:00 April 6th, 2011|CRM|

Just a quick guide on how to Implement Bing Maps in CRM 2011 , in this guide i will show you how to add a Bing Map into each ‘Account’ in CRM. So you will end up with something like the below.

image

Steps

  • Open CRM 2011 in Internet Explorer
  • Navigate to Settings > Customizations and the go to Customize the System
  • If you then press web resources on the left hand side and press new
  • image

  • If you fill the following settings into your Web Resource
  • image

    Once you have selected JSCRIPT as the Content type , Press Text Editor and type the below into the box, you can try copy and pasting but you may experience formatting issues with quotation marks which will cause errors when you come to view the Bing Map.

function bingmap()
{

var AccountZip = crmForm.all.address1_postalcode.DataValue;

var MapURL = “http://www.bing.com/maps/default.aspx?v=2&where1=” + AccountZip + “”;
if (MapURL != null)
{
crmForm.all.IFRAME_map.src = MapURL;
}
}

  • If you the press ‘Save and Close’
  • Now expand Entities > Account > Forms and Double click ‘Information’

image

  • We are now going to insert an IFRAME , so select where you want the map to go on your Form ( You do this by simply clicking where you want to place it on the form)
  • Once you have selected your location , Select insert and then IFRAME

image

  • Fill the IFRAME in as below and press ok

image

 

  • Now press home and select ‘Form Properties’

image

  • Press add under Form Libraries and select “new_BingMap” and press ok

image

  • Now under Event handlers press add

image

  • In the handler properties fill in the below and press ok

image

 

  • Press ok again and press save and close
  • Now press ‘publish all customizations’

If you now go into an account you should now see the Bing Map Smile

image