When you click the New Task or Log A Call button from the Open Activities or Activity History related list on e.g. an Opportunity, you're taken to the regular https://<instance>.salesforce.com/00T/e
URL, ready for your input on the details of the Task.
On this page, when you click Save, you're being redirected back to the Opportunity you came from (to which the new task now belongs).
We have a custom button on Tasks that we want people to click, in certain situations, right after having created the Task. This, of course, makes it rather cumbersome for the user as they now have to:
- Click New Task
- Fill out the task info
- Click Save, which redirects you to the Opportunity
- Navigate to the related lists (Open Activities or Activity History) and locate the newly created task
- Click the task to get to the detail page of it
- Finally click our custom button
Is there any way to force the navigation to stay on the detail page of the task when you create it? I'm thinking this is how everything else works in SFDC - when you create a new Account and you click Save, you're brought the detail page of this new account. Not for tasks, it seems...
I've been trying to figure out if there's any form of URL parameter you could utilize (retUrl, saveUrl etc) but none of them seem to let you stay on the record (since you don't know the task's ID yet). Leaving retUrl out altogether simply redirects you back to ..../home/home.jsp
which doesn't help either.