Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Public static void GE_PW_RegionUpdate(GE_PW_TriggerContextVariables tcv)
  2. {
  3. List<Tier3_Region__c> trObj = new List<Tier3_Region__c>();
  4. for(Opportunity opp :(List<Opportunity >)tcv.newlist)
  5. {
  6. trObj = Tier3_Region__c.getValues();
  7. for(Tier3_Region__c TR: trObj){
  8. if(TR.Country__c == Opp.GE_OG_Install_Country__c )
  9. {
  10. Opp.Tier_3_Install_Region__c = trObj.Region__c;
  11. }
  12. }
  13. }
  14. }
  15.  
  16. Opp.Tier_3_Install_Region__c = trObj.Region__c;
  17.  
  18. Opp.Tier_3_Install_Region__c = TR.Region__c;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement