What is Salesforce1 Lightning Process Builder?
Kevin Boyle on April 24th 2015
We all know that Salesforce is an innovative company, and they're always improving the Salesforce1 platform. But it seems they've recently picked up the pace with everything that's coming under the Salesforce1 Lightning banner. One of the simplest additions, but one that could have a big impact on your daily workflow, is Salesforce1 Lightning Process Builder.
Process Builder is interesting because it builds on the existing Flow metadata type that we have today but adds a really sweet user interface on top of Flow, making it a breeze to model complex processes without needing to write any code. It provides a visual flowchart you can build on to automate things that you previously needed to write Apex for. If your process is really complicated, you can still call out to Apex for the small part that can’t be modelled visually.
Imagine the following requirement comes in from the business:
When a new account is created, it should be posted to Chatter so the team is aware, and a call should be logged against the account for a salesperson to pick up.
With Process Builder, this kind of workflow is easy to orchestrate.
In Setup, launch Process Builder:
<li> <p> Click <strong>New</strong>: </p> <a href="/images/blog/what-is-salesforce1-process-builder/2-start-process-builder.png" data-lightbox="image-2" data-title="Creating a new Flow in Process Builder"><img src="/images/blog/what-is-salesforce1-process-builder/2-start-process-builder.png" alt="Creating a new Flow in Process Builder" class="center"/></a> </li> <li> <p> Give your process a descriptive name so your fellow admins know what it's for: </p> <a href="/images/blog/what-is-salesforce1-process-builder/3-specify-process-name.png" data-lightbox="image-3" data-title="Add a good name to your new Flow"><img src="/images/blog/what-is-salesforce1-process-builder/3-specify-process-name.png" alt="Add a good name to your new Flow" class="center"/></a> </li> <li> <p> Now we have the visual flowchart designer all ready to design our business process: </p> <a href="/images/blog/what-is-salesforce1-process-builder/4-empty-process-builder.png" data-lightbox="image-4" data-title="This is what a blank Flow looks like in Process Builder"><img src="/images/blog/what-is-salesforce1-process-builder/4-empty-process-builder.png" alt="This is what a blank Flow looks like in Process Builder" class="center"/></a> </li> <li> <p> The first thing we need to pick for our process is which object type the process will act on. In our example, this is <strong>Account</strong>. We can also add a constraint so the process actions only happen if the account matches certain conditions </p> <p> Finally, you can add actions to occur when the account is created or updated. These can do whatever you need by calling out to Apex, but there are many predefined common actions, such as posting to Chatter or logging calls. </p> <a href="/images/blog/what-is-salesforce1-process-builder/5-process-builder-with-actions.png" data-lightbox="image-5" data-title="Select the object type you want this flow to process and add some actions"><img src="/images/blog/what-is-salesforce1-process-builder/5-process-builder-with-actions.png" alt="Select the object type you want this flow to process and add some actions" class="center"/></a> </li> <li> <p> Now that your Flow is configured, click <strong>Activate</strong> so that Salesforce begins following it. </p> <a href="/images/blog/what-is-salesforce1-process-builder/6-activate.png" data-lightbox="image-6" data-title="Don't forget to activate your Flow"><img src="/images/blog/what-is-salesforce1-process-builder/6-activate.png" alt="Don't forget to activate your Flow" class="center"/></a> </li>
###How do I deploy Process Builder processes?
We want to make sure Gearset Deploy is the easiest way to deploy any Salesforce change you make, and that means we want work with all parts of the Salesforce platform. So, how do I deploy the thing I just created with Process Builder to another organization?
Every deployment in Gearset Deploy begins with choosing the source organization where you've made the change, and the target organization you want to move the change to.
When the comparison is finished, you'll see any new, deleted or changed objects. Here, we can see the Flow that Process Builder has created. Gearset Deploy also shows the line-by-line differences for the object so you can make sure it's exactly as you intended.
To deploy this Flow into our target organization, simply check the Deploy box next to it and click Next to review and start the deployment. You can also export a report at this stage to let your team review what you've done.
Now that the Flow has been deployed, simply go to your target organization and activate it so that it'll start processing.
Process Builder will make it easy to model complex processes without writing code, and we want to make it just as easy to get those Flows into production.