title: Javascript Windows Azure Mobile Service Client With Custom API
body: <p>I am attempting to call a custom api with javascript created in Windows Azure Mobile Services and I am having an issue with getting the results in the callback/promise. </p>
  
  <p>I have tested it with fiddler and the data object is being returned with the correct data however it is not passing that data to the callback.</p>
  
  <p>Any help would be greatly appreciated! Below is the code segment I am using:</p>
  
  <pre><code>client.invokeApi('NameOfApi', {
              method: 'GET',
              parameters: { organizationId: organizationID }
          }).done(function (results) {
              var requests = JSON.parse(results.response);
              //Do some stuffz with requests collection
          }, function (error) {
              alert(error);
          });
  </code></pre>
  
  <p>And in doing so I am getting into the <code>done</code> or <code>error</code> callbacks through debugging methods. However I have verified that the results are coming back from the api call but they never reached the promise for some reason.</p>