
I created a custom button to create a Contract from the Opportunity object that also brings over a few ther related items:
/800/e?CF00Nf0000000Za1A={!Opportunity.Name}
&CF00Nf0000000Za1A_lkid={!Opportunity.Id}
&accid={!Opportunity.AccountId}
&retURL=%2F{!Opportunity.Id}
The problem I have is that I have 2 Contract record types. The button works perfectly, excepts its assumes the FIRST record type. How can I get the custom button to prompt me to choose a Record Type, as it does if i select the standard 'create contract' button? Thanks!
11 answers
Steve,
the trick is where we place the retURL parameter in the URL... i just played around in dev org and figured out the below works.. give it a try..
/setup/ui/recordtypeselect.jsp?
ent=Contract
&save_new_url= /800/e?retURL=/{!Opportunity.Id}&CF00Nf0000000Za1A={!Opportunity.Name}
&CF00Nf0000000Za1A_lkid={!Opportunity.Id}
&accid={!Opportunity.AccountId}