function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Son HSon H 

Auto populate Contact into New Task using a custom button on a custom object

How do I auto populate Contact into New Task using a custom button on a custom object?

So far I created a custom button in a custom object with the following syntax. It is properly creating a Task and pulling in the Account information and relating to the custom Object. How do I populate the Contact into the Task Page?

Here is my code:

/00T/e?who_id={!Call__c.AccountId__c}&
what_id={!Call__c.Id}&retURL=%2F{!Call_Report__c.Id}
Mahesh DMahesh D
Hi Son H,

You can use below code:
 
/00T/e?who_id={!Call__c.AccountId__c}&tsk2_mlktp={!Call__c.ContactId__c}&
what_id={!Call__c.Id}&retURL=%2F{!Call_Report__c.Id}
Please do let me know if it helps you.

Regards,
Mahesh