locked
Response body null from CRM Azure app. RRS feed

  • Question

  • I want to give crm data to sharepoint, So I followed the steps to create Web app/ API and followed the steps given in the below link.

    https://msdn.microsoft.com/en-us/library/mt595797.aspx

    I can able to login and I'm able to get the logged-in user name and authentication token from authContext.acquireToken(organizationURI, retrieveAccounts). I'm facing an at below

    req.onreadystatechange = function () {
                    if (this.readyState == 4 /* complete */) {
                        req.onreadystatechange = null;
                        if (this.status == 200) {
                            var accounts = JSON.parse(this.response).value;
                            renderAccounts(accounts);
                        }
                        else {
                            var error = JSON.parse(this.response).error;
                            console.log(error.message);
                            errorMessage.textContent = error.message;

                        }
                    }

    I'm getting ready state ==4 but its not getting status ==200. I found this.response also getting empty or null. Can anyone help me to resolve the issue.

    Thursday, July 27, 2017 10:40 PM

All replies

  • @sadiqh Ahmed,

    Can you pleas help me to fix the issue.

    Tuesday, August 1, 2017 1:46 PM