I've created a 'Log Visit' custom button which uses the log a call functionality and would like this to automatically populate an Activity Type called 'Park Visit' when I press the custom button.
Here is what im currenlty using:
/00T/e?title=Log Park Visit&what_id={!Account.Id}&followup=1&tsk5=Park Visit&retURL=%2F{!Account.Id}
Cant seem to work out how to do this.
답변 2개
Hi Dean
The field ID of the Type field on the Activity is tsk10 (if you are using the standard activity type field), you can find a reference to those values here: https://developer.salesforce.com/forums/?id=906F00000008kCEIAY
You do not need the Title portion and tsk5 is the subject line so I am assuming you want to set the subject of the task to "Log Park Visit" as well. If you do not, just change the text in between the " " in the tsk5 section.
Your URL should look like this:
/00T/e?tsk5="Log Park Visit"&what_id={!Account.Id}&followup=1&tsk10="Park Visit"&retURL=%2F{!Account.Id}