I am sharing a file with a task by creating
LinkedEntityId points to the task record.
Now, if a certain update happens to a parent record then i am trying to update only
ContentDocumentId in the
ContentDocumentLink that was previously inserted.
However, i am getting an exception,
execution of BeforeUpdate caused by: System.SObjectException: Field is not writeable: ContentDocumentLink.ContentDocumentId
Do I need to delete previous
ContentDocumentLink and insert a new
ContentDocumentLink with updated
Can't we update