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
SFDC StudentSFDC Student 

Querying the data from Content Object

Hi

How can i retrieve or access or query the data from these objects?

 

1.ContentDocument

2. ContentWorkspace

 

 

 

Ankit AroraAnkit Arora

For ContentDocument :

 

Select c.Title, c.SystemModstamp, c.PublishStatus, c.OwnerId, c.LatestPublishedVersionId, c.LastModifiedDate, c.LastModifiedById, c.IsDeleted, c.Id, c.CreatedDate, c.CreatedById From ContentDocument c

 And for ContentWorkspace :

 

http://www.salesforce.com/docs/developer/cookbook/Content/query_workspaces.htm

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

SFDC_LearnerSFDC_Learner

Hi Ankit,

 

Where i can find the tab for all these objects in my Dev Org?

 

 

Ankit AroraAnkit Arora

There are no tabs for these standard objects also we can't create tab for standard objects.

 

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

RamyaKrishnaRamyaKrishna

When i am  retrieving data from those objects, i could not find any  data stored in that object.

Where i can enter the data to those objects, and how can i query the entered data?

 

Plz tell me amit.

 

Ankit AroraAnkit Arora

Go to Chatter tab > Upload any file and use this query in system logs to get result

 

List<ContentDocument> c = [Select c.Title, c.PublishStatus From ContentDocument c] ;
System.debug(' ::::::' + c) ;

 

For more reference, visit : 

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentdocument.htm

 

http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contentworkspace.htm

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

SFDC_LearnerSFDC_Learner

Hi, How can i display the Content of that file in system log.