Please reload

Recent Posts

'Change Owner' Trick to Take 5 Clicks to 1

March 16, 2017

Reducing the number of clicks a user needs to perform their tasks should be a goal for anyone configuring a CRM.  The standard process to change ownership of a record in is a minimum of 5 clicks.  In the Classic view, an OnClick Javascript button will reduce this to just one click, if all the user wants to do is change a record ownership to themselves.  A use case for this button is if Cases get assigned to a Queue and a Queue member wants to take ownership of the Case quickly.  This could reduction of clicks can also be solved with a Quick Action in Lightning experience of as well.


Here is the Javascript Code:



var caseObj = new sforce.SObject("Case"); 
caseObj.Id = '{!Case.Id}'; 
caseObj.OwnerId = '{!$User.Id}'; 
var result = sforce.connection.update([caseObj]); 
if (result[0].success=='false') { 
} else { 



Share on Facebook
Share on Twitter
Please reload

Please reload


(303) 953-0078

Fax (866) 618-4062

777 29th Street, Suite 202 Boulder, CO 80303