You need to sign in to do that
Don't have an account?
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()); } }