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
Soumyodeep Guha 8Soumyodeep Guha 8 

how to update the ownerId field in the ContentDocument object

HI All,

can anyone provide me a solution on how to update the ownerId field in the ContentDocument object. i have tried doing this with a trigger on ContentDocument object but it does not seems to work
Best Answer chosen by Soumyodeep Guha 8
GauravGargGauravGarg

Hi Soumya,

You cannot change the Ownerid of ContentDocument, instead add Collaborators. Please see this link (https://success.salesforce.com/answers?id=90630000000gjXqAAI). 

Thanks,

Gaurav
Skype: gaurav62990

All Answers

Manj_SFDCManj_SFDC
try to move all the logic from update trigger to a trigger on ContentVersion.
GauravGargGauravGarg

Hi Soumya,

You cannot change the Ownerid of ContentDocument, instead add Collaborators. Please see this link (https://success.salesforce.com/answers?id=90630000000gjXqAAI). 

Thanks,

Gaurav
Skype: gaurav62990

This was selected as the best answer