Answered by:
CRM 2015 error 'getServerUrl'

Question
-
Hi,
I've updated CRM 2013 to 2015 (never had 2011) and now users are receiving error when accessing Leads (any Leads, making Leads also).
I've read that 'getServerUrl' was used in 2011, but not anymore. And as I said, I've never installed that version.
Error:Object doesn't support property or method 'getServerUrl'.
I've installed Visual Studio 2013 and searched the entire code. I could not find that command (getClientUrl I could).
When I open Web Site in Visual Studio I get this message:
When I say Yes it changes my Pool on IIS and I cannot access CRM anymore.
Any suggestions?
Thank You!
Vlastimir Sindelic
Thursday, January 8, 2015 11:04 PM
Answers
-
Hi,
- Navigate to form editor.
- Click form properties.
- Copy the js code and search for getServerUrl().
Thanks!
Kalim Khan
- Marked as answer by Curt Spanburgh MVP ModeratorMVP, Moderator Monday, January 12, 2015 5:33 AM
Friday, January 9, 2015 7:01 AM
All replies
-
just replace getServerUrl with getClientUrl in your javascript code
EDIT: you need to check the javascript webresources connected to Lead entity (under Settings -> Customizations)
My blog: www.crmanswers.net - Rockstar 365 Profile
- Proposed as answer by Guido PreiteMVP Thursday, January 8, 2015 11:17 PM
- Edited by Guido PreiteMVP Thursday, January 8, 2015 11:18 PM
Thursday, January 8, 2015 11:17 PM -
Hi,
I'm fairly new at this, so I would need more details. I've opened the website in Visual Studio and then did a search for getServerUrl on the entire Project, came back empty, while I could fing getClientUrl.
I checked the java script inside oobwebresource folder and there I could only find getClient() commands.
Thank you.
Vlastimir Sindelic
Thursday, January 8, 2015 11:48 PM -
Hi,
- Navigate to form editor.
- Click form properties.
- Copy the js code and search for getServerUrl().
Thanks!
Kalim Khan
- Marked as answer by Curt Spanburgh MVP ModeratorMVP, Moderator Monday, January 12, 2015 5:33 AM
Friday, January 9, 2015 7:01 AM -
Hi Kalim,
If you can provide a link having complete such differences in Client API for Dynamics CRM 2015 vs 2013?
Microsoft team,
Please consider backward compatibility for such minor issues that do not impact overall design of the system.
Thank you.
blog: http://technologynotesforyou.wordpress.com | skype: ali.net.pk
Tuesday, January 13, 2015 7:51 AM -
a link having complete such differences in Client API for Dynamics CRM 2015 vs 2013?
http://msdn.microsoft.com/en-us/library/gg309589.aspx
http://msdn.microsoft.com/en-us/library/d7d0b052-abca-4f81-9b86-0b9dc5e62a66#BKMK_removedmethods
My blog: www.crmanswers.net - Rockstar 365 Profile
- Edited by Guido PreiteMVP Tuesday, January 13, 2015 8:31 AM
Tuesday, January 13, 2015 8:30 AM