How to get all related objects for an object in Salesforce?
Sample Code: for ( ChildRelationship r : Contact.SObjectType.getDescribe().getChildRelationships() ) { System.debug( String.valueOf( r.getChildSObject() ) ); } Output:
Sample Code: for ( ChildRelationship r : Contact.SObjectType.getDescribe().getChildRelationships() ) { System.debug( String.valueOf( r.getChildSObject() ) ); } Output:
You can temporarily deactivate a PushTopic, rather than deleting it, by setting the isActive field to false. To deactivate a PushTopic, 1. Run the below SOQL in Developer Console SELECT Id, Name, IsActive FROM PushTopic ....
Sample Code: Set < String > listsObjs = new Set < String > { 'Account', 'Lead' }; Map < String, Schema.SObjectType > globalDescription = Schema.getGlobalDescribe(); for ( String obj : ....
Use Lightning Dialer to access telephony features without ever leaving Salesforce. Make and receive calls, add call notes, and log call information with ease. It just takes a single click ....
1. Go to Chatter tab. 2. Select the Chatter Stream. 2. Click Notifications to adjust.
You can’t delete a user, but you can deactivate an account so a user can no longer log in to Salesforce. If an user is inactivated/deactivate in Salesforce, then 1. ....
1. You cannot delete Accounts if it has cases related to it. 2. If you delete the Account, it's related Assets will also gets deleted. 3. Deletes related Contacts. 4. ....
The call to Database.executeBatch should be included within the Test.startTest and Test.stopTest block. The job executes after the call to Test.stopTest. Any asynchronous code included within Test.startTest and Test.stopTest is ....
To download Download SQL Server Management Studio (SSMS), check the below link https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms Note: Download the current General Availability (GA) version of SSMS.
Use the @isTest(isParallel=true) annotation to indicate test classes that can run in parallel and aren’t restricted by the default limits on the number of concurrent tests. This makes the execution ....