I am trying to create a custom button to create a task. I want to set the task Related To as a Campaign, but am unable to accomplish this. What am I missing?

Button or Link URL:

&tsk5=Campaign Call 

I even see that this field is tsk3_mlpk, but can't pass the value of Campaign to it.



The fields are ContactId and CampaignId. Also you can use the what_id and who_id parameters to set those fields. So you probably want:


You can use the Insert field picklist above the URL entry to give you the correct merge field.

  • That worked great, but some additional complexity is now added. Here is what I have now: – Lori Apr 23 '15 at 15:20
  • /00T/e?who_id={!CampaignMember.ContactId}&what_id={!CampaignMember.CampaignId} &tsk4={!Today} &tsk5=Campaign Call &tsk12=Completed & IF({!CampaignMember.LeadId}==ISBLANK), (tsk2={!CampaignMember.Contact} && tsk3={!CampaignMember.Campaign}), (tsk2={!CampaignMember.Lead}& tsk3=) – Lori Apr 23 '15 at 16:45
  • What I ultimately want to do is have this button complete the related to field and Name (Contact or Lead). It works fine with the Contact, but when trying to do this from a Lead, it still completes the related to and will not allow me to change the Contact/Lead drop down to lead and complete the name. – Lori Apr 23 '15 at 16:47
  • You can use a formula inside your who_id parameter to differentiate to a Contact or Lead who_id={!IF(ISBLANK(CampaignMember.ContactId),CampaignMember.LeadId, CampaignMember.ContactId)} and get rid of your tsk2 and tsk3 params – CyberJus Apr 23 '15 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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