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
arkusarkus 

Creating Task from Button on Opportunity

Kinda a hack but I have the task creating well but I can't seem to figure out how to set the status or the due date. Ideally I would want the status to be set to complete and the due date to be set to TODAY(). 

 

Here is what I have so far: 

 

 

/00T/e?tsk5=Opportunity Comment&tsk3_mlktp=006&tsk3_lki={!Opportunity.Id}&tsk3={!Opportunity.Name}&
retURL=%2F{!Opportunity.Id}

 

Prafull G.Prafull G.
You need to pass the default values for Status and Due date in url. Check the below url
/00T/e?tsk5=Opportunity Comment&tsk3_mlktp=006&tsk3_lki={!Opportunity.Id}&tsk3={!Opportunity.Name}&
retURL=%2F{!Opportunity.Id}&tsk12=Completed&tsk4={!Today}

regards,
crmtech21