Skip to main content

Salesforce Automation - Process Builder Basics

ADVANTAGES: 
  1. Process Builder lets you automate more things.
    • Process Builder includes more flexible actions compared with the corresponding workflow actions. 
    • You can create any record instead of just tasks. 
    • The Update Records process action (which corresponds with the field update workflow action) lets you update any related record, while the field update workflow action lets you update only the record or its parent.
    • Process Builder also includes brand new actions that aren’t available in Workflow—such as Post to Chatter and Submit for Approval.
  2. Process Builder lets you control the order of your criteria.
    • In Process Builder, you determine the exact evaluation order of your process’ criteria. In turn, within a given process criteria, you determine the order of its actions. 
    • Whereas In Workflow, there’s no way for you to determine which order your workflow rules run in.
  3. Process Builder lets you access fields on every related record.
    • In Workflow, you can reference fields on the record’s parent. 
    • Process Builder, on the other hand, lets you access the fields on any related record, no matter how far away that record is.
    • You can reference fields on a parent record, grandparent record, or great-great-great-grandparent record twice removed.
  4. Process Builder is the future.
    • Salesforce is no longer enhancing Workflow. They still support your use of workflow rules, and will continue to do so. 
    • But all new functionality for the workflow use case will come through Process Builder. 
    • If you want to use the shiny new functionality, migrate your automation to Process Builder.
  5. You can assign task to Queue using Process Builder.
How to Create Process Builder:
  • Click Gear icon to access Setup in Lightning Experience and select Setup. This launches Setup in a new tab.
  • From Setup, enter Builder in the Quick Find box, and select Process Builder.
  • Click New.
  • For Process Name, type Contact address change.
  • For The process starts when, select A record changes, and click Save.
  • Click + Add Object.
  • In the right window, select Account(You can Select any object) from the Object drop-down list.
  • For Start the process select when a record is created or edited.
  • Click Save.
Add Criteria
  • Click Add Criteria.
  • For Criteria Name, type "Give a Proper Name".
  • For Criteria for Executing Actions, keep it set to Conditions are met.
  • For Set Filter Conditions, click Find a field..., select "Desire Filed" and click Choose, Set relavent Operator, and set to desire Value.(For Each condition do this step again and again)
  • For Conditions, keep it set to All of the conditions are met (AND).
  • Click Save.
Add Action 
  • Under the Immediate Actions box, click + Add Action.
  • In the Action Type drop-down list, select Update Records(Any Desire Action).
  • For Action Name give a Name to it.
  • For Record Type, click the radio button next to Select a record related to the Selected Object, then scroll down and select any realted object, and click Choose. This is pretty powerful stuff, so pause and take note. Example Process Builder allows you to choose not just fields on Accounts, but fields that are related to Accounts.
  • For Criteria for Updating Records, keep it set at No criteria—just update the records!.
  • Under Set new field values for the records you update, click Find a field..., and then scroll down and select filds.
  • Select Field Reference for the Type(Or anything you want from drop down).
  • For Value, select realted Field say as the Account field and click Choose.
  • Click Save.
  • Click Activate and then click Confirm.
Samples Process Builder

Assign Task/Event (New feature of 2020)
  • Assign Task/Event to Queue will be done by using a Custom Label
  • Custom Label will have id of Queue in value
  • Use formula for "Assign To" field and Assign Custom Label From Formula Editor.
Happy Learning...Subscribe for more updates

Comments

  1. Awesome Man, keep up the good work.Those who face problem while adding permission sets to the permission set group , please switch to lightning and do so.

    ReplyDelete

Post a Comment

Popular posts from this blog

Platform Developer I Certification Maintenance (Winter '23)

 Maintain Your Platform Developer I Certification for Winter ’23 1. Field update actions have changed in API Version 54.0. Which record-triggered flows do field update actions now execute? Answer: Before-Save after After-Save 2. Which Apex class is used to determine the hostnames for the domains that Salesforce hosts for your org? Answer: System.DomainCreator 3. Which modules can be used for notifications in a Lightning web component instead of native APIs? Answer: LightningAlert, LightningConfirm, and LightningPrompt 4. What determines an org’s “shape” in Salesforce? Answer: Features, settings, edition, limits, and licenses 5. Which lightning-modal-* component is required to create a modal? Answer: Body 6. How do you call an invocable action from Apex code? Answer: Reference Invocable.Action Get Hands-On With Apex Assertions 1. Create Two Apex class: Copy and Paste below codes (A.) TestFactory @isTest public class TestFactory {    public static Account getAccount(String accountName, B

Administrator Certification Maintenance (Spring '23)

 Maintain Your Administrator Certification for Spring '23 1. What information is listed in the Details panel for recently used reports? Answer: A, B, C 2. What is used to give sales reps access to a guided process to import contacts and leads? Answer:  Sample CSV file 3. Which feature efficiently removes inactive picklist values? Answer: Bulk Delete Unused Values 4. Which type of Process Builder processes can be converted using the Migrate to Flow tool? Answer: Record-triggered Get Hands-on with Enhance Record Pages With Dynamic Forms Follow steps show in Screenshot also highlighted with Red Box:

Platform App Builder Certification Maintenance (Winter ’23)

Maintain Your Platform App Builder Certification for Winter ’23 1. What component customizes related lists directly from the Lightning App Builder? Answer:      Dynamic Related List – Single 2. Where can a debug flow test be created and saved? Answer:      Flow Builder 3. What action enables smart email auto-responses in Flow Builder? Answer:      Create Article Recommendations 4. Custom address fields improve address data accuracy for your users using what type of list? Answer: State and Country/Territory Picklists 5. What are the benefits of using Dynamic Forms on record pages? Answer:      Place fields anywhere on the page  Use Visibility Rule to show and hide fields  6. Restriction or scoping rules now allow multiple values. When should double quotes surround a value? Answer:      If a single value contains a comma  Get Hands-On With Permission Set Expiration Verify before performing this: Permission Set & Permission Set Group Assignments with Expiration Dates should be enabled

Translate