Taking Ownership – Leads & Cases
February 20, 2012 8 Comments
Leads and Cases are special things in Salesforce. They are transactions between your organization and the outside. In the case of Leads, they are potential business. In the case of Cases, they are existing customers (usually), asking for help. Once they are moved through a defined business process they are closed.
Users who are handling Leads and Cases are usually pressured to move through them as quickly & efficiently as possible while being informative and helpful. This means that these folks are especially grateful when you can automate away extraneous clicks. Here is one such click-saving idea:
Create a custom Detail Page button which has the following code:
- Cases: /{!Case.Id}/a?newOwn={!User.Name}&save=x&retURL=%2F{!Case.Id}
- Leads: /{!Lead.Id}/a?newOwn={!User.Name}&save=x&retURL=%2F{!Lead.Id}
I named my buttons “Take Ownership”, but you can call them whatever you’d like.
When someone clicks the button, the owner of the record is changed to that user.
Here is a screenshot of the settings for the Case button:
Caveat: This type of URL hacking is entirely unsupported by Salesforce. They can change URL structures at any time. They never have, but know that this is a risk.
This is excellent Amber !!!
This is really good tip. Saves us from writing complex codes!
There also is a free app on the AppExchange that adds a custom button to take ownership of Cases: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000007qNiSEAU
Hi there,
I’m having trouble with this amazing idea of yours… I followed your instructions, but when I press it, I get this error below
Error
The page you submitted was invalid for your session. Please click Save again to confirm your change.
This error comes up on the screen that comes up when you normally press change user. The only difference is that it has filled in the users name
It turns out the save=x functionality was deprecated. To my knowledge there is no work around or fix. 😦
Pingback: Great URL Hack, Meet The Chatter Publisher Action | Wizard & Friends News
Pingback: Great URL Hack, Meet The Chatter Publisher Action - The Wizard News
Pingback: Confluence: Salesforce Technology