How can we upload file in ContentFolder? I am able to upload file in Library directly but not in ContentFolder via apex.
For uploading file in library , I used the below Apex code and It works fine for me.
contentDocumentlink link = new contentDocumentlink(); link.ContentDocumentId = '0696E000000IXTgQAO'; link.LinkedEntityId ='07H6E000000021KUAQ'; link.ShareType = 'I'; insert link;
Note :: 07H6E000000021KUAQ is Library Id and 0696E000000IXTgQAO is Salesforce File Id.