SHARE
TWEET

Untitled

tototototo123 Mar 26th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. User u = [SELECT Id, Name, Location__c FROM User WHERE Id =: userInfo.getUserId()];
  2. // Update Loations Interaction
  3.                 if ((Trigger.IsInsert) || (Trigger.IsUpdate)) {
  4.                     String locationsInteraction = newCase.LOCATIONSINTERACTION__c;
  5.                          if(locationsInteraction != null) {
  6.                             if(!locationsInteraction.contains(u.Location__c))
  7.                                 newCase.LOCATIONSINTERACTION__c = newCase.LOCATIONSINTERACTION__c + '; ' + u.Location__c;
  8.                         } else
  9.                             newCase.LOCATIONSINTERACTION__c = u.Location__c;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top