Advertisement
Guest User

Untitled

a guest
Feb 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. /* Purpose/Overview : To update Region field when Country value is updated/Inserted */
  2. Public static void GE_PW_RegionUpdate(GE_PW_TriggerContextVariables tcv)
  3. {
  4. List<Tier3_Region__c> trObj = new List<Tier3_Region__c>();
  5. for(Opportunity opp :(List<Opportunity >)tcv.newlist)
  6. {
  7. trObj = Tier3_Region__c.getValues();
  8. for(Tier3_Region__c TR: trObj){
  9. if(TR.Country__c == Opp.GE_OG_Install_Country__c )
  10. {
  11. Opp.Tier_3_Install_Region__c = trObj.Region__c;
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement