Field History Tracking SOQL for Parent(Lookup or Master Detail) field in Salesforce
Sample SOQL:SELECT Id, OldValue, NewValue, Field FROM ContactHistory WHERE Field = 'Account' AND ContactId = '0035f000002a3PlAAI' Output:
Sample SOQL:SELECT Id, OldValue, NewValue, Field FROM ContactHistory WHERE Field = 'Account' AND ContactId = '0035f000002a3PlAAI' Output:
instanceof can be used to find the object type in Salesforce Apex. TYPEOF can be used to find the object type in Salesforce SOQL. For Task Object with What field: ....
To find/query/SQOL all the Chatter Posts for a specific user in Salesforce, run a SOQL FeedItem object/entity where InsertedById is filtered by the id of the user. SOQL: SELECT Id, ....
Exception:Your org has too many waiting flow interviews, including processes that are waiting to execute groups of scheduled actions. Wait for some interviews to complete, or delete unneeded interviews. https://help.salesforce.com/s/articleView?id=sf.process_limits_scheduled_processing.htm&type=5 ....
1. Get the session id. 2. Use Data Loader. Sample SOQL: SELECT ConversationDefinitionId, CreatedById, CreatedDate, DialogDefinitionId, EventDateTime, EventLabel, EventTarget, EventTargetType, EventTimestamp, EventUuid, Id, IsDeleted, LastModifiedById, LastModifiedDate, LogLevel, LogType, ParentId, PreviousEventLogId, ....
Syntax:SELECT Id, UserName FROM User WHERE Id IN ( SELECT AssigneeId FROM PermissionSetLicenseAssign WHERE PermissionSetLicense.MasterLabel = '<Name of the Permission Set License' ) You can get the Name of the Permission ....
Files are stored in ContentDocument entity. Use this soql to find the ContentDocumentId. SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId = '<MessagingSessionId>' Example: 1. Run the below SOQL.SELECT ContentDocumentId FROM ContentDocumentLink WHERE LinkedEntityId ....
Salesforce List Views are stored in ListView object/entity. So, we have to use ListView object/entity to query all the list views for an object in Salesforce. Sample SOQL: SELECT Id, ....
1. Run the below SOQL to get the PermissionSet Id. SELECT Id, Profile.Name FROM PermissionSet WHERE Profile.Name = 'System Administrator' 2. Use the PermissionSet Id from the step 1 and ....
1. Run the below SOQL to get the PermissionSet Id. SELECT Id, Profile.Name FROM PermissionSet WHERE Profile.Name = 'System Administrator' 2. Use the PermissionSet Id from the step 1 and ....