You need to sign in to do that
Don't have an account?

Pulling DataCategories via WebServices API returns them out of order
I'm following the datacategory code samples in C# from the webservices API doc. When pulling them back, they don't seem to be in any sane order, as defined in the setup area. Since all that is return is a DataCategory[], and a DataCategory itself only has properties for name, label, and description, I'm a little perplexed here.
Can you be more specific? What order are you looking for them to be in?
i'm looking for them to be in the order that i define them in the SF Setup area.
Example, in our environment, I have a data category called Products. They are defined in order:
LogMeIn Rescue
LogMeIn Central
LogMeIn Pro2
LogMeIn Backup
LogMeIn Hamachi2
LogMeIn Free
LogMeIn Ignition for iPhone
LogMeIn Ignition for Android
LogMeIn Ignition for Windows
RemotelyAnywhere
Network Console
join.me
And when I pull the datacategories via the API, this is the order I get them in a seemingly random order. While writing this, I got:
LogMeIn Backup
LogMeIn Ignition for iPhone
LogMeIn Hamachi2
LogMeIn Ignition for Windows
LogMeIn Free
LogMeIn Rescue
RemotelyAnywhere
Network Console
LogMeIn Pro2
LogMeIn Ignition for Android
LogMeIn Central
join.me
When I wrote the original post, they were in a different order.
Here's the code I'm using to pull the data categories (C# .NET)
I'll note, that the caching doesn't matter here, this happened before I implemented that.
Paul,
Categories should come back in the correct order. There is probably a bug behind the behavior you are seeing.
Can you enter a case for this?
Thanks
Etienne
Hi Etienne,
Case 04255306 has been opened per your recommendation.
Thanks!