Learning Salesforce.com Workbench Part 2 (Guest Post)

By

“Last week I introduced you to fellow Salesforce MVP Brian Kwong. He is the Salesforce Wizard and has the hat to prove it. He has been a Salesforce Administrator for six years. In addition to being a ButtonClick Admin, Brian also utilizes Salesforce Apex and Visualforce. You know he is a driven MVP because he took on the challenge of 2 back-to-back posts about the Salesforce.com Workbench on ButtonClick Admin! So let’s continue our learning about the Salesforce Workbench!” -Mike

Welcome back! In my last post we looked three of the most common tools I use on the Salesforce Workbench: Password Management, Object Information and Query. This time we’re going to look at some more specialized tools and one potential replacement for the data loader.

Tool # 1 – Configuration Deploys

This is a specialize tool to retrieve and deploy configuration setup or “Metadata.” We have lots of options for doing deploys. We could re-create our sandbox work (ick!), we could use Change Sets, or the Force.com IDE. For most of my deploys I choose Change Sets or the IDE. There are two situations where I’ll use this tool:

  • Deploy Configuration to a Developer Org
  • Save Sandbox work so I can for a refresh

We’ve all been there. We’re working on a project in Sandbox and we get the Salesforce Preview email. We need to refresh to get the preview! Oh No! All our hard work! What do we do? Deploy to production hiding everything? Start over again? No way.

With Workbench we can create a “back up” of our configuration and deploy back to our sandbox after I refresh. This is a bit involved, so for small projects this may not be the route to take. It’ll be something to decide. We need to do a few things.

  1. Either we need a package to “download” or we need to create a Package.xml There’s lots of sample here
  2. We select that package in our “Retrieve” tool. Review our objects and click Retrieve

We’re done! The retrieve tool will create a zip file to download. Now we can use the workbench to deploy our metadata. The process is just as simple:

  1. Select “Deploy” from Migration
  2. Select our zip file and click next
  3. Deploy!

Tool # 2 – Streaming Push Topic (Secret Admin Notifications)

Think workflow email alert – without the email. Streaming Push Topics are typically used by developers to create awesome pages that refresh when Salesforce records are updated. This can also be a tool for the Button Click Admin who wants to have some mischievous fun.

Yes, I said fun. We’re going to create ourselves a workflow free notification and spook our end users into believing we’re the all knowing and powerful people we are.

Here’s the setup, we’re onboarding a new group and we want to post in Chatter to congratulate when the first few people create records. Yes, we could use a list view, a report, or an email alert. This is a one-time thing and we will have to constantly refresh a view or report. No! We shall use Push Topics!

First, we need to create a push topic. This is easy. We just need a SOQL query. Any field in the query will cause a notification when a value is changed. We also want to filter the query so it only includes records we care about.

You don’t know how to write a SOQL query? Go back to our last post! Workbench includes almost entirely point-and-click query creator.

  1. We name our Push Topic
  2. Paste our Query
  3. Save & Subscribe!

We’re done! Now as records that meet your SOQL are created or updated we’ll get a post in Workbench. The post will have a lot information in it, just skip to the area that says “sObject” and you’ll see the fields from your query and their value.

Tool # 3 – ‘Cloud’ Data Loader

Workbench includes the same tools available in the data loader: Insert, Upsert, Update, Delete, Undelete, and Purge. So why not use the Apex Data Loader? We’re Cloud Admins! Who wants to download software! The Workbench is available anywhere and everywhere we can access Salesforce.  So let’s go to the cloud!

Just like the Data Loader, we need to have a CSV file with the Record IDs (except Inserts) and field values. Once we have this file we go to our workbench and:

  1. Under Data Select our Desired function (Insert, Update, Etc)
  2. Select the sObject
  3. Select “From File” and pick our CSV and click Next
  4. Map our CSV columns to Salesforce Fields
  5. Confirm

We’re done! When you thousands of records you can use the Bulk API. Just click the checkbox before you hit the confirm button.

There’s a lot more than the Workbench. There’s a REST explorer and the ability to execute APEX code. The Workbench is a great tool for the Button Click Admin. It has useful tools you can use immediately and it has tools that can let you dip your toe into that developer realm. This Workbench is truly a great companion for any great ButtonClick Craftsman.

Learning Salesforce.com Workbench Part 1

Knowing your data tools is a ButtonClick Admin habit, and it goes without saying that I love the Excel connector– I’ll be having Ron Hess on the ButtonClick Admin podcast very soon. And while I haven’t neglected the Salesforce Workbench I’ve always wanted to have someone who can adequately give it the justice it deserves. […]

READ MORE

Salesforce CSI: Uncovering What was Previously Built

So, you’ve inherited an undocumented org…now what? You’ve started a new job. (Congrats!) You’re volunteering for a non-profit. (Go you!) You’re a consultant who’s just started working with a new client. (It begins!) You ask your new boss/supervisor/manager for the documentation of the Salesforce org and you get a blank stare and a shrug. Oh […]

READ MORE

9 Things Your Consultant Won’t Say To Your Face

I recently read a very interesting article about the behind-the-scenes truths in sales and it inspired me think about the truths of consulting. Having worked on a few consulting projects, I reached out to the Cloud for Good team who has worked on hundreds of implementation projects and here is what they came up with: 1. We […]

READ MORE