Answered by:
Iframes and mapping

Question
-
I received the following RSS today http://blogs.msdn.com/crm/archive/2009/04/15/microsoft-dynamics-crm-iframe-magic.aspx and have followed through the instructions. The map page displays, but the location is not showing properly. I noticed that the address it fills in (Taken from the CRM fields specified) also includes the United States at the end, which for me is not really useful as all our clients are in the UK , and because of this it seems to confuse the mapping page.
I can't see what is putting in the United States suffix as the code was literally cut/pasted from the article and looking at the JavaScript, it only pulls out street1,city,county/province and zip/postal code.
Any ideas? Anyone in the UK got this working?
RobFriday, April 17, 2009 12:40 PM
Answers
-
see text in bold below; it's the US code; yyou should also consider the state part (in italic)
var MapURL = "http://maps.msn.com/home.aspx?strt1=" + AccountStreet + "&city1="+ AccountCity+"&stnm1=" + AccountState + "&zipc1=" + AccountZip + "&cnty1=0";
I recommend that you do the search manually according to your sceario; check the search URL that you get; and the adjust the MapURL sequence above.
Morten- Marked as answer by Scott Sewell, Hitachi SolutionsModerator Saturday, April 18, 2009 12:03 PM
Saturday, April 18, 2009 7:54 AM
All replies
-
Hi
I noticed that to manual navigate to the uk maps is different to the url specified.
The site redirects to multimaps.com
maybe you have to get thr rpoper url and parameters checked for UK
Tiaan van Niekerk http://crmdelacreme.blogspot.com Skype:tiaan.van.niekerk1- Proposed as answer by Tiaan van Niekerk Saturday, April 18, 2009 7:06 AM
Saturday, April 18, 2009 7:06 AM -
see text in bold below; it's the US code; yyou should also consider the state part (in italic)
var MapURL = "http://maps.msn.com/home.aspx?strt1=" + AccountStreet + "&city1="+ AccountCity+"&stnm1=" + AccountState + "&zipc1=" + AccountZip + "&cnty1=0";
I recommend that you do the search manually according to your sceario; check the search URL that you get; and the adjust the MapURL sequence above.
Morten- Marked as answer by Scott Sewell, Hitachi SolutionsModerator Saturday, April 18, 2009 12:03 PM
Saturday, April 18, 2009 7:54 AM -
Thanks for the 'heads up' guys.
If anyone is interested, the revised JavaScript should look like this:
var MapURL = "http://www.multimap.com/maps/?qs=" + AccountZip;
This will give you the map in the UK. I've only used the postcode, as often this is enough.
Rob
www.crmconsult.infoMonday, April 20, 2009 9:39 AM -
Got it working on Uk map by changing to &cnty=2 as the UK code is 2Friday, April 24, 2009 11:05 PM
-
i have the same problem I want to use it fro Australia. How can I get the code for AustraliaTuesday, April 28, 2009 1:38 AM