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
Thomas Reinman 16Thomas Reinman 16 

Is it possible request methods to existing sObjects to Salesforce?

How difficult would it be for Salesforce to add the Describe() method for the following objects?

CollaborationGroupRecord, ContentDocumentLink, ContentFolderItem, ContentFolderMember, ContentHubItem, Datacloud*, DataStatistics, DataType, DcSocialProfile*, EntityDefinition, EntityParticle, FieldDefinition, FlexQueueItem, IdeaComment, KnowledgeArticleVersion, ListViewChartInstance, LoginEvent, OauthToken, PicklistValueInfo, PlatformAction, RelationshipDomain, RelationshipInfo, SearchLayout, TenantUsageEntitlement, UserEntityAccess, UserAppMenuItem, UserFieldAccess, UserProfileFeed, UserRecordAccess, Vote
Raj VakatiRaj Vakati
Hi Thomas , 

Try something as shown below.
 
// sObject types to describe
String[] types = new String[]{'Account','CollaborationGroupRecord','ContentDocumentLink','ContentFolderItem' };

// Make the describe call
Schema.DescribeSobjectResult[] results = Schema.describeSObjects(types);

System.debug('Got describe information for ' + results.size() + ' sObjects.');

// For each returned result, get some info
for(Schema.DescribeSobjectResult res : results) {
    System.debug('sObject Label: ' + res.getLabel());
    System.debug('Number of fields: ' + res.fields.getMap().size());
    System.debug(res.isCustom() ? 'This is a custom object.' : 'This is a standard object.');
    // Get child relationships
    Schema.ChildRelationship[] rels = res.getChildRelationships();
    if (rels.size() > 0) {
        System.debug(res.getName() + ' has ' + rels.size() + ' child relationships.');
    }
}