Process Builder 101

If you are thinking about how to perform business tasks automatically without even writing a single piece of code that you can perform with the same efficiency as when done with coding. You can think of one of the powerful workflow tools i.e. Process Builder which we are going to discuss in this blog.

Introduction to Process Builder

As we have discussed earlier, it can perform tasks automatically, so in simple words, we can say that Process Builder is a tool that evaluates when a record change or any platform event message is received, or when invoked by another process.

There are various actions that you can perform using Process Builder as follows:

  1. You can create a record.
  2. You can update a record.
  3. You can use Process Builder to launch a flow.
  4. You can invoke another process.

For example, the company you are doing business with has moved to another location, and suppose your company with which we are doing business (accounts in Salesforce) have several employees working with and now each employee has to change their business address as their company got relocated to another location.

Now we are going to discuss the steps required:

Step 1: Create a New Process for Account object

  1. From Setup, search Process Builder 
  2. Click New
  3. Now a new tab opens in which you have to fill in some information like Process Name (You can give familiarity to your task), description (This is not mandatory, so if leave it blank then it would make no difference), and now select the option in the process starts when (in our case when the record changes).
  4. Click Save.

Step 2: Now for Adding Process Criteria, Create Criteria

  1. In Add Criteria, first of all, you have to name the criteria
  2. Select conditions are met under Criteria for executing actions.
  3. Under Set conditions, Select Billing Street as field Ischanged and set the value to true.
  4. Under conditions, select all of the conditions are met.
  5. Click Save.

Step 3: Add Action

  1. Under Action Type, select Update Records as per our requirement.
  2. Give Action Name
  3. Under record type, select Account.Contacts.
  4. Under criteria for updating records, select no criteria just update the records.
  5. Select Mailing Street field and give reference to (Account.Billing Street).
  6. Click Save.

Step 4: Test the Process Builder

  1. Now you have to test for the task of creating a new record for an account object or you can use an old one to test the process builder.
  2. In case of a new record after saving it change the billing address and save it.
  3. Now Check for related contacts to that account, and see if their mailing address got updated or not.
  4. If the Mailing Address gets updated it means your Process Builder is Successfully running.
  5. If the mailing address does not get an update, then there might be something wrong while writing the actions or maybe during creating the actions.
  6. Remember, one of the reasons might be due to not activating the Process Builder. Please activate the Process Builder after saving it.


You May Also Like