12-13-2010 07:05 AM
I have been working with sData for a while now in XML format, but would prefer to get JSON data back instead. According to the sData spec this is possible by passing a format=json. Does this work for SalesLogix? Does anyone have experience with this?
06-17-2011 09:08 AM
Hi,
I also need to return JSON using sData, how can accomplish that ?
Thanks,
Marcelo.
06-17-2011 09:21 AM
What version of SLX are you working with? SP3 does return JSON. In fact this is the default format for the return.
06-17-2011 09:49 AM - edited 06-17-2011 10:18 AM
Hi Gene,
I need to consume data from Slx 7.5.3 using SDATA, but I would like to get the objects based on Json format, the data is retrieved in feed format.
is there anything i need to set so that sdata returns a json object?
Thanks,
Marcelo.
06-17-2011 11:15 AM
You need to sent a format=json at the end of the URL or add a header for Json.
06-18-2011 04:25 AM
Could you please post an example?
Thanks!
06-20-2011 08:26 AM
06-20-2011 08:49 AM
Hi
I am using JScript to consume SData services? How can I enable Json ? within the create service constructor ?
Thanks,
Marcelo.
06-20-2011 09:03 AM
I'm not sure what library you are using. Can you provide your code?
06-20-2011 09:18 AM
Below is the code I am using to create the service, I am using sdata-client-dependencies.js and sdata-client.js
function CreateService() {
var service = new Sage.SData.Client.SDataService({
serverName:'myserver',
port:'myport',
virtualDirectory:'sdata',
applicationName:'slx',
contractName:'dynamic',
userName:'lee',
password:''
});
return service;
}