Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to see if we can populate a field in event when we click the new event from opportunity.

When we click new event from opportunity, the opportunity get auto filled in the event. Is it possible to do the same for other fields?

When i click on new event on opportunity, this the url which we get

This passes the whatid into the url, tried to pass subject in the url, it didnt work. Any ideas if this could be achieved

share|improve this question
up vote 3 down vote accepted

You can do this with a custom button. Here are the steps:

  1. Create a custom button (Setup > Customize > Activities > Event Buttons and Links: enter image description here Here's the formula for easy cut and paste. You can see I added &evt5={!Opportunity.Name}. This sends over the opportunity name as the subject:


  1. Add this button to your Opportunity page layout. You need to click on the little wrench on the Open Activities section: enter image description here

Then add the custom button and optionally remove the standard New Event button: enter image description here

share|improve this answer
Thanks.. this was exactly what i wanted :) – Prady Dec 7 '12 at 5:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.