Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. trigger AutoNumberProposal on Quote (after insert) {
  2. if(trigger.isInsert){
  3. AutoUpdateProposalName.after_insert(trigger.new);
  4. }
  5. }
  6. //////////////////////////////////////////////
  7. public class AutoUpdateProposalName {
  8.  
  9. public static void after_insert(List<Quote> qtelst){
  10.  
  11. List<Quote> lstAccUpdate = new List<Quote>();
  12. for(Quote objAccount: qtelst)
  13. {
  14. objAccount.Name = objAccount.Quote_Auto__c ;
  15. lstAccUpdate.add(objAccount);
  16. }
  17. system.debug('---14---'+lstAccUpdate);
  18. update lstAccUpdate;
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement