Skip to main content
I added a reference to a knowledge article which explains the behavior when a file is deleted in Lightning vs Classic
Source Link
goabhigo
  • 344
  • 1
  • 12

I have a Site User who accesses records through a VF page. I am encountering a strange problem where, Files uploaded in Lightning is visible but not the files those were uploaded in Classic.

When debugged, SOQL query is returning all in Execute Anonymous, but Debug Logs show only limited (uploaded in Lightning).

List<ContentDocumentLink> docList = [select ContentDocumentId, ContentDocument.title from ContentDocumentLink where LinkedEntityId =:recordId];
system.debug('docList: ' + docList);

I found that there is "working as designed" behavior while deleting a File - Lightning vs Classic - https://help.salesforce.com/articleView?id=000270734&language=en_US&type=1. Wondering if my issue is similar to this issue!

Any idea how to solve this? More importantly any idea why this is happening?

I have a Site User who accesses records through a VF page. I am encountering a strange problem where, Files uploaded in Lightning is visible but not the files those were uploaded in Classic.

When debugged, SOQL query is returning all in Execute Anonymous, but Debug Logs show only limited (uploaded in Lightning).

List<ContentDocumentLink> docList = [select ContentDocumentId, ContentDocument.title from ContentDocumentLink where LinkedEntityId =:recordId];
system.debug('docList: ' + docList);

Any idea how to solve this? More importantly any idea why this is happening?

I have a Site User who accesses records through a VF page. I am encountering a strange problem where, Files uploaded in Lightning is visible but not the files those were uploaded in Classic.

When debugged, SOQL query is returning all in Execute Anonymous, but Debug Logs show only limited (uploaded in Lightning).

List<ContentDocumentLink> docList = [select ContentDocumentId, ContentDocument.title from ContentDocumentLink where LinkedEntityId =:recordId];
system.debug('docList: ' + docList);

I found that there is "working as designed" behavior while deleting a File - Lightning vs Classic - https://help.salesforce.com/articleView?id=000270734&language=en_US&type=1. Wondering if my issue is similar to this issue!

Any idea how to solve this? More importantly any idea why this is happening?

Source Link
goabhigo
  • 344
  • 1
  • 12

Querying Files in Apex, Classic vs Lightning

I have a Site User who accesses records through a VF page. I am encountering a strange problem where, Files uploaded in Lightning is visible but not the files those were uploaded in Classic.

When debugged, SOQL query is returning all in Execute Anonymous, but Debug Logs show only limited (uploaded in Lightning).

List<ContentDocumentLink> docList = [select ContentDocumentId, ContentDocument.title from ContentDocumentLink where LinkedEntityId =:recordId];
system.debug('docList: ' + docList);

Any idea how to solve this? More importantly any idea why this is happening?