You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If ContentDocument has only ContentDocumentLinks with LinkedEntityId of User Object (more than two links) package will throw Internal Salesforce Error (also in AppExchange package). The error seems to be caused by lack of null check in ContentDocumentLink when checking if LinkedEntityId type is EmailMessage.
Steps to reproduce:
Create ContentVersion and create two ContentDocumentLink for two different users.
Workaround:
Create additional ContentDocumentLink pointing to any other object than User.
The text was updated successfully, but these errors were encountered:
If ContentDocument has only ContentDocumentLinks with LinkedEntityId of User Object (more than two links) package will throw Internal Salesforce Error (also in AppExchange package). The error seems to be caused by lack of null check in ContentDocumentLink when checking if LinkedEntityId type is EmailMessage.
Steps to reproduce:
Create ContentVersion and create two ContentDocumentLink for two different users.
Workaround:
Create additional ContentDocumentLink pointing to any other object than User.
The text was updated successfully, but these errors were encountered: