web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / CRM 2013 New and Beautiful ...

CRM 2013 New and Beautiful getClientUrl() method instead of getServerUrl()

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

 Sanghamitra Samantaray

In CRM 2013 Microsoft has introduced this new client context method called “getClientUrl”

This is the replacement to the previous method called “getServerUrl” that was present in CRM 2011.

This method was faulty because it always returns the server name in the URL as it is set up in the CRM deployment manager, irrespective of how the host url looks like.

this is issue in scenarios where users might have invoked CRM using the server IP address or fully qualified domain name etc.

because when in the java script we call getServerUrl it does not return the URL with the server name as it was used by the calling the host url, but that of what is stored in the server, which fails , in the situations where the server name is not accessible from the host machine but the IP or fully qualified name.

in order to correct this…

View original post 125 more words


Filed under: CRM 2011

This was originally posted here.

Comments

*This post is locked for comments