You need to sign in to do that
Don't have an account?
Diwakar G
Trigger on quote
The records of quote object contain notes and attachments. Trigger should be executed after a new attachment is added for a record. I don't want to create trigger on attachment object. I need to create on Quote object. How can I do this.
In this scenario you can write a trigger to count the number of Attachments on records and then whenever the No of Attachment will increase fire your trigger.
Let me know in case of any query.
Thanks,
Nitish
If you dont want to write trigger then you can use this code to count no of attachment on Quote. For this you need one custom Number field of number type and you can remove it from Page Layout.
But the problem with this approch is it will only count the Attachment when this perticular Quote will get edit. If you will write this trigger on Attachment then whenever you will insert any attachment it will update the Parent Quote object and then you can write your Trigger logic in Quote trigger on No of Attchamnet Field change.
Thanks,
Nitish