Need help in creating create list of contentdocumentlink for the list of contentversion
₹400-750 INR / hour
İptal edildi
İlan edilme: 4 yıldan fazla önce
₹400-750 INR / hour
i am trying to create list of contentversion for set of Id and blob data, which i am able to create, but now when i am trying to create contentdocumentlink for the list of contentversion, i am not getting any field which i should be relating to my LinkedEntityId.
List<ContentVersion> cvc=new List<ContentVersion>();
List<ContentDocumentLink> cdll = new List<ContentDocumentLink>();
for(Id x : [login to view URL]()){
ContentVersion cv=new ContentVersion();
cv.Title=XXXXXX;
cv.VersionData= [login to view URL](x);
cv.PathOnClient=XXXXXX;
[login to view URL](cv);
}
[login to view URL](cvc);
for(ContentVersion cvv: [Select Id,ContentDocumentId from ContentVersion where ?????? IN : [login to view URL]() ]){
ContentDocumentLink cdl = new ContentDocumentLink();
[login to view URL] = [login to view URL];
[login to view URL] = ????????
[login to view URL] = 'V';
[login to view URL](cdl);
[login to view URL]('Hello');
}
insert cdll;