Pour Some Sugar On Me...
It's taken a while, but I have finally got round to finishing my MapPoint integration code for CRM 3.0. There's a whole bunch of things you can do with Microsoft MapPoint, but the most obvious is to display a location map based upon the address fields of an Account or Contact record.
I took the easy options of using an IFRAME and building a fairly straightforward ASP.NET page to handle the heavy lifting. I chose to display the map automatically, rather than having to click a button on a form, and the result is shown below.
In order to use the solutions you need to sign up for a MapPoint developer's account as detailed in my earlier post here, then you need to get the Visual Studio 2003 project files which I have uploaded as a .ZIP file here.
That's all there is to it. Once you have published the customisations, this should work a treat. I will cover the actual code at a later date, but I have tried to perform a sensible amount of error checking so that any failures are handled gracefully.
This posting is provided "AS IS" with no warranties, and confers no rights.
I love this - it is just what we are looking for, however, I am curious, is it possible to modify this example to send Lat and Longs instead of the address information found in the contact record? We have added these as new_lat and new_long to our records and this would be most helpful!
I've been trying to get this to work for 4 days but with no luck.. Via CRM I get the 'Network Problem' error. If I copy the full URL into explorer i get 'Incomplete Address'. I've checked the code and the address does not appear to fall foul of this, indeed the only line with no data on is address line 2.
Other than that great code ...
Any ideas guys?
I am getting the same message via CRM "Network Problem" I changed the MapPoint user name, and not get the "Web Service Problem" Message. Any ideas?
Here's the error I'm receiving...any assistance would be greatly appreciated!!
Parser Error Message: Could not load type 'AdventureWorks.CRM.MapPoint.GetMap'.
Line 1: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="GetMap.aspx.vb" Inherits="AdventureWorks.CRM.MapPoint.GetMap"%>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Line 3: <HTML>
Source File: c:\inetpub\wwwroot\MapPoint\getmap.aspx Line: 1
Did you make sure your web site is configured to use the correct .NET Framework version?
which version is appropriate? Currently 1.1.4322 is selected. Should this be changed to 2.0.50727? Will that affect anything else? The CRM implementation guide references 1.1 as being required for the Outlook client, but nothing about the server. Thanks for your help!
I got it to work...my bin directory was missing. Now I just need to figure out how to add the additional map function (pin tooltip, zoom and satellite views - similar to visual earth capabilities). This is excellent!
Great stuff. You should take a look here http://msdn.microsoft.com/mappoint/ as the starting point for building MapPoint Web Service apps or Virtual Earth Map Control apps.