Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. trigger ContentTrg on ContentVersion (Before Insert, Before Update) {
  2.  
  3. for(ContentVersion conObj : Trigger.New){
  4. // If(conObj.TagCsv != null)
  5. { SYSTEM.DEBUG('############ conObj.TagCsv ' + conObj.TagCsv + ' Business_Model ' + conObj.Business_Model__c);
  6. if(conObj.Business_Model__c != null)
  7. conObj.TagCsv += ', ' + conObj.Business_Model__c ;
  8. if(conObj.Account__r.Geo_HDS__c != null)
  9. conObj.TagCsv += ', ' + conObj.Account__r.GEO_HDS__c;
  10.  
  11. SYSTEM.DEBUG('############ conObj.TagCsv ' + conObj.TagCsv);
  12. }
  13.  
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement