function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rcravenrcraven 

The sobject property of the describeGlobal() Call is returning 0 resuls?

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.  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()); } }

 

phpandsfdcphpandsfdc
Might want to ask this on the .NET board, but in other languages, the result set is as expected (describe has a property 'sobjects' which is an array with a non-zero length - 111 for my instance).