Blog

Lightning Process Builder – Point & Click Process Definition in the Cloud

 The Spring ’15 release of Salesforce has opened up a whole new philosophy of developing in the cloud – the lightning framework. One key element of the lightning framework is the Lightning Process Builder.

Before diving into Lightning Process Builder, it is good to understand where Salesforce is going with the entire “Lightning” idea. It is positioned as a component based framework that offers a new set of tools for Salesforce developers and business users to make building apps, integrating data, and automating business processes lightning fast. Lightning Process Builder contributes to that last part.

 So what is Lightning Process Builder? If you ask me, I would say it is Workflow 2.0 – one that offers a much more powerful, useful, and intuitive process building experience. Many use cases for which you needed to author Apex code, can now be achieved through point-and-click ease. Functionally speaking, the process builder allows you to programmatically:

  • Create a record
  • Update all related records
  • Use a quick action to create a record, update a record, or log a call
  • Launch a trigger-ready flow
  • Send an email
  • Post to Chatter
  • Submit for approval

 Prior to Spring ’15 you would have needed to resort to Apex code to programmatically achieve most of what is said above. This also means writing test classes to make that Apex code valid; and associated maintenance. Lightning Process Builder aims to remove all that.

 Let us just take the plunge by trying to address a common use case – to update a record based on a change in an associated child record. For instance, to have a field on the Account object that shows the date of the latest Case activity.

 Go to your Setup screen, and search for Process Builder. You would be directed to the path Create | Workflow & Approval | Process Builder. Open it up and you would be prompted to enter a name and API name for the process that you are going to build. Once done, the process builder UI opens up, and if you are in the Spring ’15 release, it would look something like this:

 

 

Almost every element on this UI is clickable. A process building activity starts by defining the object in context. In our case, it would be the Case object, since we would want this process to run whenever a case is created or updated.

The UI is self-explanatory, which means a business user can define the process flow and resulting actions without seeking the help of an apex programmer. One could use point-and-click to add a criteria to check whether a case record has been updated, and if yes copy value from the “Last Modified” field on the Case record to the “Last Case Update” field on the parent account record. Once done, the process would look something like this –

 

 

In essence, you are able to author processes lightning fast – without the need for code, test classes or code maintenance. Here are some other use cases that would have required code, but now is possible using the Lightning Process Builder:

  • Change to Account Address must update addresses of all associated Contacts
  • If an Email field in a contact record is changed, an approval process must be automatically initiated
  • Assign ownership of Custom objects based on a criteria

 Process Builder is available in the Developer Edition, and there is nothing stopping you from trying it out. Spend some time with it, and you would realize the plethora of use cases that it could address. You might even want to re-engineer some of your existing Salesforce implementations.

 Process Builder vs other Process-offerings in Salesforce

 Well, there are already features like the Workflow and Visual Flow that allows you to create processes. Why then Process Builder? Well. It is always good to understand when to use what. Workflows are ideal for the simple single-object processes, where every change that is meant to happen – occurs within the context of a single object. And there is no chain of events expected.

Visual Flows are ideal for the much more complex processes like building a Wizard, or iterating through a list of records and make outbound WS calls. Process Builder stands in between, and is best for automating simple if-then scenarios – where you would want to do something if a condition is met. When compared to a workflow, the arena of things that it lets you do is much more.

 Limitations

 As is with most newly released features, there are a few limitations with the Spring 15 release of Process Builder.

  • Firstly, the process builder is not available for Group and Contact Manager Edition customers. So you would need to move to an Enterprise Edition, if you want to leverage Process Builder capabilities.
  • Another consideration to make before using Process Builder is that it cannot send outbound messages. So, it might not be an ideal choice to handle multi-system scenarios.
  • Probably the biggest limitation at the moment is the inability to set filters to define the set of child records that should be updated.
  • Also, as of now Process Builder is supported only in English.

But most of these are already on Salesforce product roadmap, and should get addressed in the coming releases.

On the whole, the Process Builder is a fresh take on enterprise process flow definition – and equips the non-developer user to contribute more to a Salesforce implementation cycle.

What Certification are you studying for now?

Focus on Force currently provides practice exams and study guides for sixteen certifications

Salesforce Process Builder Example

Lightning Process Builder – Point & Click Process Definition in the Cloud  The Spring ’15 release of Salesforce has opened up a whole new philosophy of developing in the cloud – the lightning framework. One key element of the lightning framework is the Lightning Process Builder. Before diving into Lightning Process Builder, it is good to understand where Salesforce is going with the entire “Lightning” idea. It is positioned as… Read More

Salesforce Process Builder Example

Salesforce Email to Case Setup Example

Email to Case is a standard Salesforce feature that allows cases to be created from emails.  We will be looking into the detail of On-Demand Email-To-Case and Email Services.On Demand Email-To-CaseThe first question when considering this functionality maybe which email address should be used to send to? We cannot send email to just any email address and have a Salesforce case created. We need to generate it using Salesforce configuration.Go… Read More

Salesforce VLOOKUP Example

Many people are aware of the Microsoft Excel vlookup function, that will return a value in a table (or defined range of cells) based on an identifier. Salesforce has a function with the same name, and this post will explain how it can be used using an example.Let’s say that you have a business requirement that only cases that have been open for a certain period of time can be… Read More

Salesforce VLOOKUP Example

Salesforce Multiple Record Types Example

Creating Multiple Record Types Creating brand new custom objects in Salesforce, while necessary, can be time consuming and tedious. Often times you will need to create a different page layout or new selections for a particular picklist field but the only way you know how to do this is create an entirely different custom object and customize it as needed. This is where creating multiple record types for one object… Read More

Salesforce Multiple Record Types Example

Creating a Dynamic Dashboard in Salesforce

Dashboards are a great way to represent data visually within an organization. They can show how you have performed in the past and what’s happening at the moment – two keys to any business that wants to be successful.Normally, dashboards in Salesforce are run based on one user for the entire organization. Meaning the dashboard looks the same for all users within the organization. This is great if you are… Read More

Creating a Dynamic Dashboard in Salesforce

Salesforce Web to Lead

The Salesforce Web to Lead functionality offers an easy way to get leads from your website into Salesforce. Although there are some constraints with its use, it will satisfy the requirements for many organizations. Salesforce also offers a way to associate the leads from the webpage to a particular campaign. You can also have multiple web-to-lead forms from multiple websites or landing pages, all inserting leads in Salesforce and either… Read More

Salesforce Web to Lead

Reporting on Accounts that haven’t ordered a product in the last 12 months

It is quite common for organizations to bring order history into Salesforce to add to other interactions captured in Salesforce to have a complete picture of a customer. Once the information has been brought into Salesforce, it is easy to report on account order history, but what if you would like to report on accounts that don’t have order history for a particular product in the last 12 months. This… Read More

Reporting on Accounts that haven’t ordered a product in the last 12 months

Reporting by Month and Year with Salesforce Reports

You may have the requirement to report by month and year. If you have tried that, you will find that the standard reporting features may not provide you with what you are looking for. Lets say that you would like to report on the number of closed opportunities over the last 3 years. You would like to have months reported along the top in columns and the years down the… Read More

Reporting by Month and Year with Salesforce Reports

What can you do with SalesforceA

SalesforceA was released in Spring 14 to allow Salesforce admins the flexibility to do routine user management on their mobile device. If you have ever had to immediately inactivate a user, or had to response ASAP to a user that has locked themselves out and needs a password reset, then this app will come in handy. Here is our review of what you can do with this app, what’s good… Read More

What can you do with SalesforceA

Salesforce Sandboxes

What is a Salesforce Sandbox? Although it is very easy and possible to make changes directly to configuration in Salesforce, it is a better idea to test out those changes in another environment which won’t affect your users. That’s why Salesforce includes a ‘sandbox’ for every production organisation where changes can be made and tested before moving them to production. This type of environment is called a sandbox. The number… Read More

Salesforce Sandboxes

Salesforce Quotes

Once you have added your products into an opportunity, Salesforce has inbuilt functionality to allow you to generate and email quotes to customers. Lets take a look at how this works, and what you need to be aware of when using Salesforce Quotes. First, to use Quotes they need to be enabled. By default the are not enabled and you won’t see them in your Opportunity screen. Go to: Setup… Read More

Salesforce Quotes

Salesforce Jobs

Salesforce Administrator After Salesforce is implemented, a Salesforce administrator is required to maintain and extend the system functionality as business needs change, evolve or expand into new areas of the business. The role is a varied one but will typically include some or all of the following: • Provide User Support and be responsible for user administration • Investigate and resolve problems • Investigate and analyze requests for change and… Read More

Salesforce Jobs

Salesforce Basic Terminology

If you are new to the Salesforce.com application, you may wonder ‘What exactly is Salesforce.com’ and before long you will come across some terminology that is used to describe different parts of the application, functionality and navigation.Here is a quick guide to some of the basic terminology you need to understand Salesforce.com and navigate the application.Basic SalesforceSalesforce is the name of the company and name of the application. It started… Read More

Salesforce Basic Terminology

Subtract Two Date Fields to Calculate Duration of Time

If you are faced with the challenge of calculating the duration of time between two dates in Salesforce, this post is for you. Lets say what you want is to take two dates and times, for example 20/01/2014 09:00am and 21/01/2014 10:20am and calculate the duration of time between them in hours and minutes, and display the result like this: 24:20 or 24h:20m.If we just create a formula field and… Read More

Subtract Two Date Fields to Calculate Duration of Time