Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger ContentTrg on ContentVersion (Before Insert, Before Update) {
- for(ContentVersion conObj : Trigger.New){
- // If(conObj.TagCsv != null)
- { SYSTEM.DEBUG('############ conObj.TagCsv ' + conObj.TagCsv + ' Business_Model ' + conObj.Business_Model__c);
- if(conObj.Business_Model__c != null)
- conObj.TagCsv += ', ' + conObj.Business_Model__c ;
- if(conObj.Account__r.Geo_HDS__c != null)
- conObj.TagCsv += ', ' + conObj.Account__r.GEO_HDS__c;
- SYSTEM.DEBUG('############ conObj.TagCsv ' + conObj.TagCsv);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement