Salesforce Fact #821 | Accounts and related notes

Suppose we need to find out the related notes for the account records. We can use the below query:

SELECT Id, Name, (SELECT Id, ContentDocumentId FROM ContentDocumentLinks WHERE ContentDocument.FileType='SNOTE') FROM Account

Note: Note records are stored with filetype as 'SNOTE'

Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow