Trigger to update Account when Contact is Created in Salesforce
Custom Field in Account to update when Contact is created: Sample Trigger: trigger ContactTrigger on Contact ( after insert ) { Set < Id > setAccountIds = new Set < ....
Custom Field in Account to update when Contact is created: Sample Trigger: trigger ContactTrigger on Contact ( after insert ) { Set < Id > setAccountIds = new Set < ....
search command can be used for sub-search or sub query in Splunk. search command should be within []. Syntax:main query [search subquery] Sample Query:index=abc type=test[search index=abc *Exception* source=Gearliest=-5d | table requestId] ....
You can convert a master-detail relationship to a lookup relationship as long as no roll-up summary fields exist on the master object.Converting a master-detail relationship to a lookup for a ....
Option 1: You can limit the email addresses or domains available for On-Demand Email-to-Case by entering them in this field, separated by commas in "Accept Email From". Option 2: Usually, ....
Salesforce actively block SSO logins when you are logged in(impersonated) as a different user. As an admin or delegated admin, you can login as an user using Login button on ....
IsCompleted field in CaseMilestone is not Writeable/Editable.So, this cannot be updated. But, to update the IsCompleted field, update the CompletionDate field. Once the CompletionDate field is updated, the IsCompleted flag will ....
Sample Apex Class: public class Sample { public static void insertRecord( SObject objRecord ) { try { insert objRecord; ....
Requirement: Mark First Response Milestone as completed when the agent changes the status of the Case from New to Working. Note: IsCompleted field in CaseMilestone is not Writeable/Editable. So, this ....
Using Schema.getGlobalDescribe() and Schema.SObjectField, we can find all the Unique property enabled fields within an object in Salesforce. Use the following sample code to find all the unique property enabled ....
Sample Code: Apex Class: public with sharing class ExistingFilesController { @AuraEnabled( cacheable = true ) public static List < ContentDocument > fetchContentDocuments( String strRecordId ) { List ....