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

describeSObject Inaccuracies
I found that the ownerId field of the Group object as returned by describeSObject is said to be type reference, and the referenceTo value is just User. Yet I also find the ID of an Organization in that column.
Similarly, the UserId of QueueMember is said to refer to User, but I see it containing something with a "00G" prefix.
Can someone help me understand this?
John Saunders
Note that QueueMember is really the same as GroupMember, and GroupMember has the foreign key defined as User or Group
Thanks for the information. I'll treat these as special cases. Do you happen to know of any other special cases? I'd like to be able to depend on describeSObject being accurate.
Also, a suggestion on QueueMember and GroupMember being the same. Please don't do that! At least, please don't do that without reflecting it in the metadata. Perhaps you should add an aliases column to DescribeSObjectResult? It could be a string array, and would assist in maintaining my sanity.
Are there any other aliased objects?
Thanks,
John Saunders
No other aliased objects, and I know of no other special cases. If you find anything else, please post them.
Thanks for letting us know about this one!
Ok, here's another. The "Status" field of the "Approval" object has a "Length" of 1!
You might want to check to see if you have any other picklists with a Length of 1.
John Saunders