
Introduction
Process Builder is a point & click automation tool available on the Salesforce Platform. I have explained the details about the Process Builder Interface in one of my earlier blogs. I will be skipping Process Builder interface-specific details in this blog, so I would recommend you to first go through the blog. This blog is available here: Working with Process Builder - I
In this blog, we will look for another process automation solving another real-time business problem using Process Builder. Let's consider the problem statement below to identify the business problem at hand.
Problem Statement
While adding or modifying the point of contact for any specific account, we need to make sure that contact must have a valid Phone Number & Email ID. If contacts don’t have Phone Number & Email ID, then this information should be copied from Account Details.
Analysis of Problem Statement
In the real world, as developers, we should always look into the problem statement carefully to identify the best approach to solve it, so adopt this as a rule of thumb.
From the problem statement we have:
- Trigger - New Contact Record added or edited
- Criteria - If Contact Email Id & Phone Number are empty
- Action - Update Contact information from Account Details
- Contact.Email = Account.Email
- Contact.Phone = Account.Phone
Launch the Org and search for “Process Builder” in Setup Navigation on the left, as shown below.
This will launch the “View All Processes” screen where we can see the list of all the processes created earlier.
Click on the “New” button.
This will launch the New Process Configuration dialog box.
Specify the details “Name, API Name, Description, and Process Type” for the new process.
Click on “Save” to persist the changes and start the Process designer.


To add the trigger for the Process, click on “Add Object”.
- Click Add Object
- Select the trigger target as any desired sObject from Object Dropdown, I choose "Contact" Object-based on the problem statement
- Select the trigger condition as when do you like to initiate the process. I choose “when a record is created or edited” based on the problem statement
- Click "Save" to save the changes
To add the criteria click on “Add Criteria”.

- Click Add Criteria
- Enter the name of the criteria to uniquely identifies the criteria by its function
- Select applicable conditions to execute actions, I choose “Conditions are met” which means that actions will be executed only when conditions are fully satisfied
- Configure condition based on your problem statement:
- Contact.Email == Null
- Contact.Phone == Null
We set both the values to a global constant collection which is represented by “$GlobalConstant.Null” in declarative development paradigms for Salesforce Development.

- Evaluate the conditional logic to merge the conditions using logical operators. It follows the format: Condition 1 <logical operator> Condition 2 “Customize my logic” is my preferred option since it gives me maximum flexibility to place conditions more logically in whatever way best suited the requirement.
Here, I have mentioned “1 And 2”, which mean both conditions 1 & 2 must be evaluated to True to success these criteria
- Click “Save” to save the changes.












Join the conversation! Your thoughts help the community grow.