Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created June 19, 2019 18:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arun12209/c8c3739e4c3e1692e067933c775c993a to your computer and use it in GitHub Desktop.
FilesController
public class FilesController {
@AuraEnabled
public static List<ContentDocumentLink> fetchFiles(String linkedRecId){
List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId,ContentDocument.title FROM ContentDocumentLink WHERE LinkedEntityId =: linkedRecId];
return cdlList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment