Neil McDonald's Dynamics 365 and Power Platform Blog

Google Maps in CRM

with one comment

Tumblr_l56ytphlmo1qccrkio1_1280

I wanted a quick way of viewing an Account’s location so I created a link to Google maps based on the postcode of the Account.

First of all, create an nvarchar/URL attribute called new_googlemaps, stick it somewhere on your Account form and then put the below javascript into the Account OnLoad event


crmForm.all.new_googlemaps.DataValue = “http://maps.google.com/maps?q=”+crmForm.all.address1_postalcode.DataValue;

It’s pretty basic but does exactly what I want. I’m going to look at embedding the actual map in an iframe when I get the chance

Edit: it turns out that Richard Knudson has covered embedding maps already on his site!

Written by neilmcd

Jul 5, 2010 at 10:27 pm

Posted in CRM 4

Tagged with ,

One Response

Subscribe to comments with RSS.

  1. This is a clever solution for quickly viewing account locations.

    Rich's avatar

    Rich

    Feb 1, 2025 at 4:44 pm


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.