Process Builder in Salesforce
- subhashrdssv
- Dec 24, 2015
- 2 min read
Salesforce Provides many automation tools like Approvals, Flows, Workflows and Process Builder which we can use one or many based on the criteria.
About:
Process Builder inclues almost all the functionality that is available in workflow rules. We can made a single process to avoid multiple workflow rules i.e. A Single Process can do what it would normally take multiple workflow rules to do.
Steps to Create the Process:
Go to Setup --> Create --> Workflow & Approvals --> Process Builder
Click on "New" Button to create the process, Enter the Process name, API name and click on "Save"
By Clicking on "Add Object" you can select the Object where you want to start the Process.
Before saving the Object, choose when the process needs to be started either “creating the record” or while “creating and editing the record”.
The usage of options here are same as in the workflow process but are you wondering about the third option i.e. "Created, and any time it's edited to simultaneously meet criteria"?
That option can also be see here in this process but only in one possible way. That is
First, Choose the option "Creating and editing the record" in object node of Process
And then in the criteria node, Checking the checkbox of "Do you want to execute the actions only when specified changes are made to the record?" will gives the same result as in workflow rule third option.
After saving the Object node, Define the criteria for Immediate actions.
Give a meaningful criteria name and then set the field coditions or formula conditions to set the Immediate action
Once you cllick the "Add the Immediate Action", there you can get the options of 8 possible Immediate actions.
Apex
Create a Record
Email Alerts
Flows
Post to Chatter
Quick Actions
Submit for Approval
Update Records
NOTE: All the Immediate Actions are explained with examples on another post. Kindly refer as you need.
These all are the possible immediate actions that a process can handle. You can choose many number of immediate actions based on your criteria.
Once you saved the Immediate Action, there is another node of "Scheduled Actions" which will be appear only in two cases:
On the Object node, the process is set to "Start the process only when a record is created". Once this option is checked, all the criteria will have the scheduled actions node as available.
(OR)
On the Object node, the process is set to "Start the process when a record is created or edited" and then on the criteria node, the checkbox "Do you want to execute the actions only when specified changes are made to the record?" must be checked. The Schedule Process node will be available only when both of these checkboxes are checked.
After the Process Creation, Activate the process and create or edit the particular object record according to process builder criteria.
Recent Posts
See AllConverting a Number to related Text using Apex Trigger and Apex Class Example: trigger NumberToWordFieldUpdate on Salary__c (before...
Here is a Trigger of Before Insert and Before Update to get the First Character of each word in a text or a String. In this Example, I...
Limits of Process Builder: A Process API Name must be unique across all process and flows in organization. Description ...
Comments