You need to sign in to do that
Don't have an account?
The sobject property of the describeGlobal() Call is returning 0 results?
Per the Winter 10 release, the describeGlobal result's "types" property is no longer supported in favour of a new "sobjects" property which returns an array of DescribeGloablSObjectResult.
However, the result set is always 0 records, because the "sobjects" property is always null. Are we missing something, or is this a bug?
DescribeGlobalResult describe = Auth.getBinding().describeGlobal(); if (describe != null) { DescribeGlobalSObjectResult[] dgos = describe.sobjects; //replaces String[] types = describeGlobalResult.types; foreach (DescribeGlobalSObjectResult dgr in dgos) { System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.ToString()); System.Diagnostics.Debug.WriteLine("### TEST : " + dgr.name.ToString()); } }
Durrr, user error.
Even though the WSDL was based on verision 17.0, I was setting the Login binding.URL based on an App.Config value which was version 14.0. I updated my Url reference, and now see the sobject property results.
Thanks!
All Answers
I'm using the Enterprise WSDL extracted from our SF production instance not more than 2 days ago. This in turn is used to create the proxy object in .NET. I've ensured to update the proxy a number of times. I've verified that the Soap Service Endpoint of the WSDL file is using version 17.0.
The describeGlobal() call seems to be working as the property for maxBatchSize is set to 200? However, the sobjects property is always null??
Durrr, user error.
Even though the WSDL was based on verision 17.0, I was setting the Login binding.URL based on an App.Config value which was version 14.0. I updated my Url reference, and now see the sobject property results.
Thanks!