A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

This logic doesn't make sense. List<paa__Trigger_Validation__mdt> triggerValidation = [SELECT paa__CaseTrigger__c,paa__CreateReservation__c,paa__DisruptionManagementTrigger__c FROM paa__Trigger_Validation__mdt]; for(paa__Trigger_Validation__mdt triggerValid : triggerValidation) { if(triggerValid....


0

This should be straightforward: Create a metadata say TriggerEnabled__Mdt Create a trigger say ContactTrigger. Create a field on the TriggerEnabled__mdt with name ContactTrigger(CheckBox) In the trigger do a check that IF this particular field is TRUE then write your logic inside that IF. Now if the field value is FALSE then that trigger code will not ...


4

There are performance gains with custom metadata as custom metadata is cached after first read. From the salesforce docs Custom metadata records are cached at the type level after the first read request. Caching enhances performance on subsequent requests. Requests that are in flight when metadata is updated don’t get the most recent metadata. Also the ...


Top 50 recent answers are included