Prevent Cherry-Picking On Cases And Leads With The Get Next Button - Story From: Recent Ideas

Service Cloud customers sometimes tell me that they have a problem with their agents cherry-picking cases and leads.  They use assignment rules to assign the objects to queues, but once they're in queues, the agents look them up in list views and accept them from there.  This can give opportunistic agents the ability to screen cases and leads, assigning to themselves only the easiest cases or the most promising leads.



Today's post offers a new way to perform this assignment.  Using some simple Apex code and a custom button, I've created a Get Next button that works on both leads and cases.  This button sits on the case or lead page.  It looks up the queues that the agent is a member of and finds the next open case or lead assigned to one of those queues.  If one is found, it then assigns the case or lead to the agent, and navigates the page there so the agent can begin working it.  It's pretty quick and intuitive.  Here's the code for it.  The sample code as posted is somewhat generic, so you may need to modify it, particularly the one for Lead to identify more tightly what constitutes an "open" Lead for your agents. 

You may notice that these code samples are part of our ever-growing Developing With The Service Cloud wiki page — if you haven't seen that, it's worth a look.  It's full of goodies.



These buttons aren't the whole solution for the cherry-picking problem, however.  For a complete solution, you'll need to prevent the agents from seeing list views, and you'll also need to prevent agents from "peeking" at cases or leads and then throwing them back in the queue if they seem too hard.



The former, preventing access to list views, is fairly simple.  The simplest way to do it is just to deny access to the Case and/or Lead tab by hiding it for your agents' profiles.  Another option is to replace those tabs with a simple Visualforce page which just has a button that calls the same Get Next code and pulls the next case or lead for the agent to work.



The latter, preventing peeks, is a little more tricky, and something you need to think through.  You can't completely prevent the agent from changing ownership of cases or leads, since they need that ability to make the Get Next button work.  You can, however, add a validation rule that says that for a given profile, once a case or lead has been assigned to an agent, that agent cannot change the owner.  That validation rule might look like something this:



AND( $User.Id<>OwnerId, $User.Id = PRIORVALUE(OwnerId), $Profile.Name = "Agent" )



Be careful though!  Your agents may actually on occasion need to change ownership of a case, for instance if they're leaving for the night or on vacation, or if they need to escalate the case to another tier.  So you might need to make exceptions to your validation rule for this.  The above rule is therefore only a sample.



An alternative would be a softer approach; you could allow your agents to reassign cases back to a queue, but when they do, add a workflow that emails the agent who reassigned the case and his supervisor.  That way, if an agent were doing a little too much peeking, the supervisor would be well aware of it (and the agent would know that the supervisor knows).



Preventing cherry-picking is never an easy problem with a one-size-fits-all solution, but with a little customization, it's generally not so difficult to arrive at a solution that will work for you.

CRM Software Free Trial – Your CRM online guide to Web-based Contact Management Software Free Internet Trials and the latest news, article, reviews & comparisons.



CRM Software Free Trial – Your CRM online guide to Web-based Contact Management Software Free Internet Trials and the latest news, article, reviews & comparisons.

Post Footer automatically generated by Add Post Footer Plugin for wordpress.

“We here at the “Web-Based Contact Management Software News, Reviews” are posting for your consumption the latest blog posts from the major Web-Based CRM Software vendors around the world who are focused on the development of products that enhance your CRM experience.” enjoy :)

——————————

Post Name:
Prevent Cherry-Picking On Cases And Leads With The Get Next Button – Story From: Recent Ideas
*
If Needed – To Read the Full Story: (post’s here may be limited by vendor’s RSS feed) – Highlight above post’s blue title, right click and search with google.

Listed Related posts:

  1. The Quick Email Button, revisited for sending Knowledge articles - Story From: Recent Ideas The Quick Email Button from the excellent werewolf, describe and to save clicks for your agents by provide a custom button that will launch directly the email editor from your case details page. Unfortunately, this customization...
  2. Drive clicks, leads, and revenue with syndicated Salesforce content - Story From: Recent Ideas Build your credibility on ours   What’s in a name?  Quite a lot, when you’re salesforce.com—the world’s largest, best-loved CRM and cloud-computing solutions company. Let your site visitors, prospects, and customers know that you’re partn......
  3. AppExchange Summer ‘10 – Partner Update - Story From: Recent Ideas The AppExchange development team has been busy at work for the last 3 months and this weekend, we'll be releasing the fruits of their labor. There are lots of great changes coming with this release, but...
  4. What can Modify All Data really do? - Story From: Recent Ideas I had this question come up last Friday: "What can Modify All Data really do?" We all know this permission to mean, "system administrator".  But we rarely look at the detail of what makes up the...
  5. How to fine tune Knowledge article auto-suggestion on case creation - Story From: Recent Ideas With Summer’10 release, Knowledge gains the ability to auto-suggest relevant articles upon case creation. Just like when searching Knowledge from a case details, the search uses only the case subject and this search can be fine...
  6. How to fine tune Knowledge articles search from a case - Story From: Popular Ideas When searching Knowledge articles from a case, by default only the case title is used for the search. Often we want to use more information from the case in order to have more accurate search...
  7. Summer ‘10 Release: Check out what the Chatter’s all about! - Story From: Recent Ideas Summer ’10 brings new and exciting ways to collaborate within your organization as well as with your customers. With Salesforce Chatter, you can bring the best of social networking to your enterprise applications to connect and...
  8. The Quick Email Button - Story From: Popular Ideas ...or, mastering the black art of URL hacking the email page.   Sending an email from Salesforce.com can be a clicky operation.  You dig around for the Send An Email button, click it, click Select Template,...
  9. Best Practice: Track the 5 most important call center metrics - Story From: Recent Ideas You’ve got your hands on the wheel, but the only way to get from 0 to 60 is to have your eyes on the dashboard. Visibility is as critical for your agents as it is for...
  10. Accelerating Enterprise Cloud Computing Adoption in the Insurance Industry - Story From: Recent Ideas Posted by Daylan Burlison on behalf of Renny Monaghan, vice president of industry solutions, salesforce.com It's an exciting time for the insurance industry, which hosting its largest event of the year this week, the ACORD LOMA Insurance...