3

No, but... You could call Url.getFileFieldURL in Apex to resolve the URL you need, then link to that dynamically in LWC.


1

I made a mistake in the code by adding the ContentDocumentLink's Id in the list instead of adding ContentDocumentLink.contentDocumentId. Fixed code : public static List<Id> getContentDocumentLinks(Id loanId) { try { String baseUrl = URL.getSalesforceBaseUrl().toExternalForm(); List<ContentDocumentLink> ...


1

Per the documentation, only a user with sharing rights to a record can see attachments on that record. You might need to use a trigger on the Attachment object and share the record through Apex. An example trigger that would do this: trigger AttachmentTriggerTest on Attachment(after insert) { List<Application__Share> appShares = new List<...


1

You'll have to use some sort of API. Apex has a 6MB heap limit, so you'd run into it regardless (binding directly wouldn't help), and also there's a maximum payload size (4MB), so the largest file you'd reasonably upload is around 3MB, include base64 encoding.


Only top voted, non community-wiki answers of a minimum length are eligible