I have a scenario to insert the content document link for sharing the contentdocument with contentworkspace (library) when the contentdocument is created.
I want to write a trigger to achieve this.
I have some questions regarding this:
- Which should I prefer, contentdocument or contentversion for writing trigger?
- What is the order of execution when a content version record is created with no contentdocumentId, like contentdocument is created first or contentversion, and after what operations will my trigger run?