I am basically trying to relate a note record to multiple cases. I understand that when I am trying to create a note it basically creates ContentDocument, ContentNote, and ContentVersion. I am not sure what other records it would create but I am aware that when I create the above-said objects certainly.
So, to relate a case to multiple records you would need ContentDocumentLink but the problem is when I am trying to link multiple cases, it would populate only the LinkedEntitlyTypeId on the ContentDocumentLink record. So, how can I get the other case record Ids? How does this magic happen (LinkedEntitlyTypeId is only one field and it cannot possibly hold multiple cases/values)?
I think LinkedEntitlyTypeId is polymorphic but it can't possibly hold multiple values, does it?
Thank you!