You need to sign in to do that
Don't have an account?
How to retrieve data from salesforce contents
Hi all,
i had requirement to pull the data from workspace contents.But it is not allowing to pull records, and giving error messages like this content does supports the List<> option.so i stuck here can anyone tell me how to get them in
a bulk way, so that i can show all the records in the page. i have developed some code, but it is retriving a single
record when i give the ID in the url like ?id=059R00000004IQBIA2 , this is workspace doc id. What i need to do now....
this is the page
<apex:page standardController="ContentWorkspacedoc">
<apex:form >
<apex:pageBlock >
<apex:pageBlockTable value="{!ContentWorkspacedoc}" var="cwsd">
<apex:column value="{!cwsd.Id}"/>
<apex:column value="{!cwsd.CONTENTDOCUMENTID}"/>
<apex:column value="{!cwsd.ContentDocument.Title}"/>
<apex:column value="{!cwsd.ContentDocument.LATESTPUBLISHEDVERSIONID}"/>
<apex:column value="{!cwsd.ContentWorkspace.NAME}"/>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>