Coding scenario

Coding Scenario 17 — Quote and QLI

Question :- Write a code to implement following requirement. When an opportunity is created/updated with status as prospect then create a quote and auto assign product to the quote with predefined quantity. OpportunityTrigger :-trigger opportunityDemotrigger on Opportunity (before insert, after insert, after update) { if(trigger.isafter){ if(trigger.isinsert){ OpportunityTriggerHandlerUpdated.opportunityInserthandler(trigger.new, trigger.newmap); } if(trigger.isupdate){ OpportunityTriggerHandlerUpdated.opportunityUpsethandler(trigger.new, trigger.oldmap); } } if(trigger.isbefore){… Continue reading Coding Scenario 17 — Quote and QLI