Yesterday, I introduced the Process Builder. Today, I’m going to do a deeper dive and show you more of the different actions we can take with the process builder.
The process builder has some similarities with Workflow Rules. It can update fields and send emails. It can also do so much more!
So let’s exam the list of all the various actions we can take.
There are seven actions types supported by the process builder. Just like with Workflow Rules, actions can occur either immediately or on a time-based scheduled. Some of the actions are familiar, but have been made a bit more robust.
Workflow Field Updates in the process builder is simply “Update Records.” You’ll notice there’s no “Create Task” in the action list. We’re no longer limited to only creating tasks. We can no “Create a Record” which may or may not be associated to the record firing the process.
Other actions that are available in Process Builder include Email Alerts, Launch a Flow, Quick Actions and Submit for Approval.
Flow fans may notice that all these actions are actions we can do within Flow. There’s a good reason for this. The process builder is using Flow in the background as the power horse.
Let’s take a look at each Action a bit more in Detail.
Create a Record
Workflow Rules allow us to create tasks. That’s great… and so boring. Process Builder allows us to create almost anything! THE SHEER UNMITIGATED POWER! Er.. Sorry got a bit carried away. The Create a Record Action let’s you choose what object you want to create. The record you create doesn’t have to be related to the record the process is firing on. Want to create a new Account? No Problem. How about a new Opportunity? Go ahead, create two!
Once you chosen the object you’ll be creating you can select the fields and their values. There are two methods of setting a value. You can simply type the value in – you always want the Account number to be “42” for example. You can also populate based on the value of a field of the record that’s calling the process. The setup feels very similar to creating defaults for a publisher action.
That’s it for creating a record. It’s a very intuitive setup, although I’ve had some difficulty with multi-select picklists.
We all love Email alerts with Workflow Rules. The Process Builder continues their usage. There are only two thing you need to define with the Email Alert: The Name of the Action, and the Email Alert itself. Unlike Workflow Rules where you can create the email alert from the actions are, Process Builder currently requires you to create the Email Alert first and then reference it as an action. It’s a little bit annoying, but I’m guessing it’ll get streamlined in the future.
Launch a Flow
This may shock some of you, but this is my FAVORITE action! Who needs to call Flow from a Workflow Rule when I have the power of the Process Builder! Basically, when you choose “Launch a Flow” as your action, you basically create a Flow Trigger as the rest of the action. It’s very straight forward. You choose your Flow and then set what the values of the Flow Variables will be. Remember, Flow Variables need to be at least Input only – although I tend to choose Input and Output for consistency sake and to work around a bug.
What I really like about the Launch the Flow action is the Flow Variables support type ahead. I am going to start labeling all my input and output variables with the same prefix to make it very easy to select them.
Post to Chatter
Posting to Chatter. This is pretty nifty idea. This action let’s you post to either the record, a user profile, or to a group. You can choose to mention a person or a group, add topics, and it supports field merges. I’m planning on using this with Chatter Groups to replace some e-mail notifications. Want to be notified when x happens? Great join the x group. Want an email each time – great! Go update your own group email digest settings.
The Process Builder allows you to use a Chatter Action or “Quick Action” as well. You can select an action that’s on a particular action or a global action. You can also search for your actions by Type (Create a Record, Log a Call, or Update a Record). I have a Quick Action for sales people to simply add a task that they left a voice message. I can now use that quick action within a Process. That’s pretty nifty.
Submit for Approval
Submitting records for approval through a Workflow Rule is something I’ve been wanting for years. It’s amazing how many times people forget they need to click that “submit for approval” button – or click the button before they completed all the prerequisites and get frustrated when there’s no approval process that meets their incomplete information. With Process Builder, I can force – er I mean add the user benefit of submitting the process on the behalf once the record has met certain criteria. I can even daisy-chain approval processes together by having one approval process update a field on the record which calls the process to submit to a different approval process.
With the Submit for Approval action you have two choices. You can submit to the “Default approval process” which is the same as just clicking the Submit for Approval button – or you can submit to a specific process. You can also choose the user who doing the submission and opt to ignore the Approval Process entry criteria. My favorite part is adding Submission Comments which show up in the Approval History.
Last, but not least, is Update Records. With Workflow Rules, we can do Field Updates. We can do the same thing with the Process Builder – but we can do SO MUCH MORE! With the Update Records action we can update CHILD records! That’s right! You have a process on the Opportunity, you can go and update every Opportunity Product!
There are a few catches here. The change has to be the same for each child record. So far, I don’t see a method for adding a formula to the action so you can have a different value set for each record. You also don’t have access to fields of the child record for dynamic values. So if you’re going to update all the Opportunity Products to have the same Discount % or pull down a value from the Opportunity to all the child records – then you’re set. If you want something more flexible, you’ll going to want to Launch a Flow.
There’s the actions we can do with the Process Builder. You can see it is significantly more powerful than Workflow Rules. In our next post, I’ll do a little deeper dive and show you what it takes to put it all together to create your first process.