Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
New Member
Posts: 6
Registered: ‎02-05-2013

How can i get a picklist using Sdata in json format?

Hi, i need to get a picklist in json format using Sdata from the webclient but i can't get it to work. I tried adding &format=json to  the end of the url but it's says error 404 not found. If i take out the &format=json it gets the values but in Atom format.

 

$.ajax({
    cache: false,
    contentType: "text/plain; charset=utf-8",
    url: "slxdata.ashx/slx/system/-/pickLists('k6UJ9A00059G')",
    dataType: "json",
    type: "GET",
    success: function (data, textStatus, xhr) {
        //TODO: code
    },
});

Highlighted
Nickel Contributor
Posts: 59
Registered: ‎07-30-2010

Re: How can i get a picklist using Sdata in json format?

Hello madlink,

 

As this is the first URL parameter, you need "?format=json" not "&format=json".

Your URL should be: 

slxdata.ashx/slx/system/-/pickLists('k6UJ9A00059G')?format=json

 


Regards,

Richard Anderson
CRM Consultant
K3 CRM