Automation Champion

Automating Salesforce One Click at a Time
Automation Champion
  • Home
  • About Me
    • Testimonials
    • Resources
  • Process Builder
  • Salesforce Flow
  • Pardot
  • Apex
  • Training Details
    • Salesforce Administrator
    • Salesforce Advanced Administrator
    • Platform App Builder
    • Lightning Flow
    • Pardot
    • Sales Cloud
    • Service Cloud
    • Community Cloud
    • Hands-on Excercises
  • My Books
  • Contact Me
  • Tag: Package Porcess Builder

    • Getting Started with Process Builder – Part 1 (Automatically Create a record)

      Posted at 10:45 PM by Rakesh Gupta, on February 13, 2015

      Big Idea or Enduring Question:

      How do you automatically create a record using Process Builder?

      Objectives:

      After reading this blog, you’ll be able to: 

      • Understand the basic components of Process Builder 
      • Learn how to auto-create a record using Process Builder

      Business Use case

      Corey Eridon is working as a System Administrator at Universal Containers (UC). He received a requirement to build a process that would automatically create a child case whenever a new case is created with the Case Reason – Breakdown.

      Automation Champion Approach (I-do):

      Because we need to create a new record, a workflow rule would not meet the needs of this requirement. Therefore, in order to automatically create a child case, Corey should use Process Builder. 

      Before we dive into the solution to help Corey, though, we need to first understand what is Process Builder and its components. 

      You can think of Process Builder as a happy medium between workflow rules and flow — it allows more automation than a workflow rule, without the advanced complexity of a flow — all with the ease of point-and-click. 

      However, unlike workflow rules, Process Builder allows more functionality, such as:

      • Creating a record 
      • Updating a related record
      • Posting to Chatter
      • Submitting a record for approval
      • And much more. 

      There are four basic components that should be considered when using Process Builder —  a trigger, criteria, immediate action, and scheduled action.

      Component Process
      Trigger Indicates when the action should fire – only when a record is created or anytime a record is created or edited
      Criteria Set conditions to execute the process
      Immediate Action The action is fired immediately
      Scheduled Action The action is fired at a scheduled time

      To better understand Universal Containers’ requirements, let’s break down the use case by Process Builder component. This will help us conceptualize the process by defining each node and action first.  

      Component Process
      Trigger When a new Case is created 
      Criteria Case Reason – Breakdown is selected
      Immediate Action create a Child Case.
      Scheduled Action Not Applicable

      Before diving further, let me show you a diagram of a Process Flow at a high level. Please spend a few minutes to go through the following Flow diagram and understand it.

      Let’s begin building this automation process.

      Guided Practice (We-do):

      There are 4 steps to solve Corey’s business requirement using Process Builder. We must: 

      1. Define process properties
      2. Define evaluation criteria
      3. Define process criteria
      4. Add action – create a record 

      Step 1: Define Process Properties

      1. Click Setup.
      2. In the Quick Find box, type Process Builder.
      3. Select Process Builder, then click New.
      4. Name the Process and click the Tab button. The API Name will populate. 
      5. As a best practice, always input a description. 
      6. The process starts when A record changes.
      7. Click Save.

      Picture1

      Step 2: Define Evaluation Criteria

      1. Click on the Add Object node to begin selecting the evaluation criteria.
      2. Select the Case object from the dropdown list.
      3. Start the process only when a record is created.
      4. Click Save.

      Picture1.2.png

      Step 3: Define Process Criteria

      1. Click the Add Criteria node to begin defining the process criteria.
      2. Name the criteria.
      3. The criteria should execute actions when the conditions are met.
      4. Set Conditions
        1. Field: Case | Reason
        2. Operator: Equals
        3. Type: Picklist
        4. Value: Breakdown
      5. Select All of the conditions are met (AND). 
      6. Click Save.

      Picture1.3.png

      Step 4: Add Action – Create a Record

      1. Below Immediate Actions, click Add Action.
      2. For Action Type, select Create a Record. 
      3. Name the action.
      4. Select the Case record type. 
      5. Set Field Values:
        1. Row 1:
          1. Field: Status
          2. Type: Picklist
          3. Value: New
        2. Click Add Row
        3. Row 2:
          1. Field: Case Origin
          2. Type: Picklist
          3. Value: Email
        4. Click Add Row
        5. Row 3:
          1. Field: Parent Case ID
          2. Type: Field Reference
          3. Value: Case | ID
      6. Click Save.

      Picture1.4.png

      Almost there! Once everything looks good, click the Activate button. Moving forward, a child case will be automatically created whenever the Case Reason – Breakdown is selected. 

      Note:- Before you activate your process, you will want to make sure that you have assigned data in the correct format because Process Builder obeys validation rules. If some fields are required by using validation rules, then make sure you have added those fields. Conversely, if some fields are required on the page layout, you can ignore those fields. 

      Formative Assessment:

      I want to hear from you!  

      What is one thing you learned from this post? How do you envision applying this new knowledge in the real world? 

      Let me know by Tweeting me at @automationchamp, or find me on LinkedIn.

      Have feedback, suggestions for posts, or need more information about Salesforce online training offered by me? Say hello, and leave a message!

      Posted in Process Builder, Spring'15 Release | 60 Comments | Tagged Activate Proces, Create a Record, Create a Record action, Deploy Porcess Builder, Flow generated by Porcess Builder, Getting started with Process Builder, How to enable Process builder, Lightning App, Lightning Developer Week, Lightning Process builder, Package Porcess Builder, Packages, Porcess Builder Deploy, Porcess Builder Distribute, Porcess Builder hack, Porcess Builder hidden gems, Porcess Builder use case, Proces builder Flow, Process Builder, Process Builder example, Process Builder Salesforce, Salesforce Lightning, Spring15 Process builder enhancement, What is Process Builder
    • Search

    • Upcoming Trainings

      Salesforce Administrator Certification
      Salesforce Advanced Administrator Certification
      Salesforce Platform App Builder Certification
      Lightning Flow & Process Builder
      Advanced Lightning Flow
      Pardot Specialist & Consultant Certification
      Sales Cloud Consultant Certification
      Service Cloud Consultant Certification
      Community Cloud Consultant Certification
    • Sponsor #1

    • Sponsor #2

    • Sponsor #3

    • Sponsor #4

    • Order Now!

    • Buy My Book

    • Buy My Book

    • Recent Posts

      • Getting Started with Salesforce Flow – Part 59 (Clone a Chatter Group with Members)
      • New Research: Salesforce Delivery Teams Excel in Speed but at the Expense of Quality
      • Improve Your Data Collection Strategy with Web Forms
      • Getting Started with Salesforce Flow – Part 58 (Customize Previous, Next, Finish, and Pause Button Label for Screen Flow!)
      • Advancing Business Operations with Salesforce and QuickBooks
    • Salesforce ID Converter Build on Lightning Flow

      Converting 15 digit ID to 18 digit Salesforce ID
    • Blog Archives

    • Categories

  • Information

    • About Me
    • Affiliate Disclaimer
    • Contact Me
    • Privacy Policy
  • Top Posts

    • Learning Flow
    • Learning Process Builder
    • Getting Started with Salesforce Flow – Part 43 (Dynamic Approval Routing in Salesforce)
    • Getting Started with Salesforce Flow – Part 57 (Adding Validation to Flow Screen Components)
    • Getting Started with Salesforce Flow – Part 59 (Clone a Chatter Group with Members)
    • Salesforce Spring’21 Release Quick Summary
    • Getting Started with Salesforce Flow – Part 1 (Understand, Create & Use Variables in Flow!)
    • Getting Started with Salesforce Flow – Part 11 (Count Number of records in a Record Collection Variable)
    • Getting Started with Salesforce Flow – Part 24 (Automatically Assign Permission Sets to New User)
    • Add Record to Multiple Chatter Groups - Parsing Multi-Select Picklist fields (Flow)
  • Social Media

    • View Automationchampion’s profile on Facebook
    • View Automationchamp’s profile on Twitter
    • View Rakeshistom’s profile on GitHub