Is it possible to for example pre fill/pre-populate field of an Quote with field values of an opportunity so the user can see the populated fiels before saving, since the Id is generated after insert? I tried the following with no success:
trigger trgQuoteOpp on Quote (before insert) {
for(Quote a : Trigger.New) {
Id quoteId = a.Id;
if(quoteId !=null){Id OppId=[SELECT OpportunityId FROM Quote WHERE Id =:quoteId ORDER by Name].Id;
System.debug(OppId);
}
System.debug(quoteId);
}
}