You need to sign in to do that
Don't have an account?
Bylithium
Trigger on Quote
Trying to write a Trigger to close all quotes after one quote is closed on an Oppurtunity.
trigger CloseAllQuotes on Quote (after update) {
system.debug('Close All the Quotes on the Oppurtunity after one Quote is closed');
ID Oppid = Trigger.new[0].OpportunityId;
if(Trigger.isAfter){
for (Quote Qt:Trigger.new){
Qt = [select id,Status from Quote where id=:Oppid];
Qt.Status = 'Approved';
Update Qt;
}
}
}
Couldn't understand the question. Please clarify your problem.