Director, Data, AI & CRM Systems

Dai dati alla decisione.
Dall'AI al valore reale.

Sono Nicola Grillo. Da 16 anni trasformo tecnologia in impatto di business: oggi guido la funzione Data, AI & CRM Systems di uno dei maggiori gruppi del gaming in Europa.

Qui sotto, l'archivio degli articoli tecnici pubblicati tra il 2010 e il 2020.

Archivio articoli

Microsoft Dynamics CRM, SQL Server, Scribe — 2010–2020

CRM 2011 : Access is Denied error message in Rest Query

This appear when you use an IP address or localhost in CRM Url. The reason is that your REST query uses the server name from the context.getServerURL function. When you make a request to what is interpreted as a different domain you will get an error.

You might try putting your IP address in your Internet explorer trusted sites and then change the IE options to allow cross domain requests, but the simplest solution is to just use the server name when you open Microsoft Dynamics CRM.

The following workaround use the application server name:


Workaround


var serverURL;

try{
serverURL =  getServerUrl()  
}catch(error e)
{
serverURL = document.location.protocol + "//" + document.location.host + "/" + Xrm.Page.context.getOrgUniqueName();
}





Thanks,
Nicola