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
Mattias NordinMattias Nordin 

Activity window input (querystring options)

It is nice that it is possible to set values in some fields in the task window by passing them into the window via the url. Anyone have the full list of supported query strings?

 

 

I have found the following to be working:

 

Window title:    ?title={!... text ...}
Assigned to:     &tsk1={!User.id}
Name:            &tsk2={!Contact.id}       or use    &what_id={!Contact.id}
Related to:      &tsk3={!Opportunity.id}   or use    &who_id={!Opportunity.id} 
Due Date:        &tsk4={!...date...}
Subject:         &tsk5={!...text...}
Comments:        &tsk6={!...text...}
???:             &tsk7= ???
???:             &tsk8= ???
???:             &tsk9= ???
Type:            &tsk10={!... Must be an existing picklist value ...}
Return url:      &retURL={!Opportunity.id}
???:             &followup= ???

 

 Example of a link that pre populates a task with subject and comment text. It also tries to connect the "Related to" and the "Name" lookup.

 

https://xxx.my.salesforce.com/00T/e?title=Call&who_id=00120000007erYY&what_id=0062000000B6wEZ&followup=0&tsk5=Subject Text Goes Here&tsk6=Comment text goes here&retURL=%2F0062000000B6wEZ

 

Anyone have more info about this please post below.

 

 

SteveBowerSteveBower

If you use the UI and go to a standard NEW Task window, and then use a browsers capability to Inspect Code, or View Source, etc. then you can look for the various HTML Input tags on the screen.  The DOM ID's of these tags, tsk3, tsk4, etc. can then be seen and you can tell which field they map to.

 

This isn't just for tags, it's for any object including custom objects.

 

Best, Steve.