Learning Objectives :-
After completing this unit, you’ll be able to:
- Explain Process Builder feature.
- Comfortably use Process Builder feature.
Process builder is a puissant implement we can use to automate business processes. It has a simple interface that sanctions us to point and click to cull objects and fields while establishing immediate and time-predicated actions. We utilize process builder to engender change pointer. It avail you facilely automate your business processes by providing a powerful and user friendly visual representation of your process. The Process Builder’s simple and powerful design sanctions us to build customize the automated process.
What is process builder?
Process Builder is a Salesforce’s point-and-click implement that we facilely automate if/then business processes and observe a graphical representation of our process. Every process consists of :
- a trigger,
- at least one criteria node,
- at least one action.
We can configure immediate actions or schedule actions to be executed at a concrete time. To keep things simple, this unit fixates on the most mundane process type: Record Change, which means the process, will commence when the records are engendered or edited.
Actions Available In Process Builder for outbound processing:
Trigger Apex code: You can use Salesforce process builder to invoke Apex code you have written within Salesforce. Apex can be anything from custom logic to save a record to complex business processes.
Create a record: This will allow you to create new records and set certain field values for the new record.
Update records: Update one or more records that are related to the record that started the process. You can update the record with manually entered values or by using the values from related records. We can update records of parent or child
Here we will going to use Create Change pointer I,e CP record for outbound processing.
- Create Integration.
- Create Outbound Interface
- To be able to execute callout, you have enter interface page detail and scroll down to Runtime Configuration- Outbound section then check flag “Use Skyvva Outbound Scheduler”.
– If you want to execute callout, the flag could be blank.
– If you want to create CP Record, the flag is required.
4. The interface could be set creating change pointer by process builder or trigger. You have to select SKYVVA API.
Create Change pointer mode:
You can create change pointer using:
- The CDD job
- Process Builder
- CDC is made up of two components, the CDD and the CDT. CDC is stand for Change Data Detection and CDT is stand for Change Data Transfer.
- These two components has different functionality. CDD is a scheduler which is running to call batch Apex in order to collect data change and save all those data into Change Pointer Object.
- To create change pointer, Scheduled CDD.(Integration Admin Tap -> Scheduler Tap. Then start the scheduler on an outbound section and set the time as you prefer.)
- To monitor CDD, Go to Integration Admin Tap -> CDC Tap -> Integration name -> Interface Name -> Status -> Search
Here We will going to create process with process builder in order to get Change pointer records. Scheduler CDD will skip this interface if value is specified.
To create process using process builder follow the given steps:
Setup =>Create =>Build=>Process builder=>New
- From Setup, enter Process Builder in the Quick Find Box, click Process Builder
- Then click New button.
- Enter process Name.
- Enter a description of the process.
- Finally, choose process type
- Click on save
- Choose object name on which you want to perform the task.
- Choose start process type.
- Add the Criteria to define it for Action Group:
Set condition field.
Choose condition type.
1. Enter criteria name.
2. Choose Criteria condition to formula evaluate to true
3. Set condition field and Choose condition type. Build Formula by insert the Function and Field 4. click on Save .
- Add the actions to execute when the criteria are met by:
1. Select the Action Type: Apex
2. Select the Action Name: Create CP Record
3. Select Apex Class: SKYVVA Callout/Create CP. When you section it, some of dropdown list will appear for you to choose. Then click Add Row to add 2 more.
To be able to execute process builder, just click on Activate button.
To monitor change pointer records
You can check the change pointer records in CDC Control Board.