locked
CRM 2011: OData and JSON - Access Errors RRS feed

  • Question

  • HI.

    I've been trying to access related data on a form using Odata and JSON as per this article: http://crmbusiness.wordpress.com/2011/03/09/crm-2011-using-odata-and-json/

    I have observed that, if the script is calling the Odata endpoint with a different URL than the user is accessing the server, it causes an access denied error.

    The problem is that for my deployment, I will need to access the server from the internet (therefore a public address is needed) and at the same time the internal users will be accessing the server from within the AD.

    So how do I satisfy both senarios similtaneously?

    Any feedback would be greatly appreicated.

    Tuesday, April 12, 2011 11:35 AM

All replies

  • If you are on an CRM page I think that you can do this:

    function getODataEndPoint() { return Xrm.Page.context.prependOrgName("/xrmservices/2011/OrganizationData.svc"); };
    
    Tuesday, April 19, 2011 2:54 PM