Created
June 19, 2019 18:19
Star
You must be signed in to star a gist
FilesController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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