We a removing the "New Opportunity" button from the Account and the Opportunity Tab so that reps have to create Opps from the Contact so we have these fields populated. To save time my reps want the New Opportunity button, not just on the Opportunity related list, - but at the top of the Contact page.
I have been unsucessfull at finding a way to do this. Tried to do a custom button - but no way to bring in the primary campaign.
Copying and pasting the URL from the related list auto populates these above fields from the contact I'm copying from (not directing back to the current contact being used to create the opp.)
Any one have any suggestion on how I can accomplish this?
15 answers
Narender, Thank you so much for your help and guidance.
I have settled on the following code. It creates my New Opp with the correct record type, populates the Primary Campaign History and and Lead Source detail(which I went the wayside while we were troubleshooting other issues. Returns to Contact on Cancel and stays on OPP on create. All of your answers lead me here - but I am making this one the best answer as it is the code that does everything I need. I learned tons about URL hacking! (Just hope I don't lose this when we switch to lightning LOL)
/006/e?
&cancelURL=%2F{!Contact.Id}
&lookupcmpgn=1&accid={!Account.Id}
&conid={!Contact.Id}
&conrel=1
&opp6={!Contact.LeadSource}
&RecordType=01215000001cwJc
&ent=Opportunity