Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
thanks for your help. On the ContentDocument it did work indeed, but im a little confused on the contentversion. Do you mean with 1. insert contentlink; 2. Approval.LockResult[] lrList = Approval.lock(accts, false); 3. update ContentDocument;? this last one isnt on the Contentversion could you please clarify whats wrong?