Skip to main content

Build an Automation for Creating Interviewer Records

Learning Objectives

In this project, you’ll:

  • Build automations in an HR recruiting app that streamline workflow for creating interviewer records and approving new positions.
  • Create a flow for the app to simplify the process of rating candidates and make the rating process consistent.

Introduction

As AW Computing grows, you continue to look for new talent. You’ve already taken care of a number of requests from Ling Wu, the vice president of Human Resources, to improve her team’s recruiting app. Now she’d like you to add automation to the mix.

Ling would like to automate the creation of interviewer records for hiring managers. She’d like to establish an approval process for new positions. And she wants a more user-friendly process for candidate scoring.

Note

Before you can do this project, you must complete the Build a Data Model for a Recruiting App, Customize the User Interface for a Recruiting App, Improve Data Quality for a Recruiting App, and Keep Data Secure in a Recruiting App projects. The work you do here builds on the work you complete in those projects.

Set Up a Flow

The first thing to tackle is automated interviewer records. To set this up, use Flow Builder, which automates tasks using conditions and actions. With Flow Builder, you establish the criteria that records must meet to trigger the flow. 

Once your criteria are in place, immediate or time-dependent actions are set in motion. These actions can include creating a record, updating a record, sending an email, posting to Slack, initiating an action, submitting for approval, or calling an Apex class. 

First things first, deactivate a previously created validation rule.

  1. From Setup, click the Object Manager tab.
  2. Click Position then Validation Rules.
  3. Click Every_Position_Must_Have_a_Hiring_Mgr to open this Validation Rule.
  4. Click Edit.
  5. Deselect the Active checkbox and Save.

Next, build a flow to create the interviewer record.

  1. From Setup, enter flows in the Quick Find box and select Flows.
  2. Click New Flow.
  3. Select Record-Triggered Flow and click Create.
  4. Enter and select Position for the Object.
  5. Select A record is created in the Configure Trigger section.
  6. In the Condition Requirements, select All Conditions Are Met (AND).
  7. Set the conditions.
    • For Field, select Hiring_Manager__c
    • Operator: Is Null
    • For Value, select GlobalConstant.False
  8. Ensure Actions and Related Records is selected.Completed Configure Flow Start screen
  9. On the flow canvas, hover over Add Element  and click Add Element to add an element.
  10. In the Add Element search box, enter create and select Create Records.
  11. Fill in the details for the new record:
    • Label: Create Interviewer Record
    • How Many Records to Create: One
    • How to Set the Record Fields: Use separate resources, and literal values
  12. In the Create a Record of This Object section, search and select the Interviewer.
  13. In the Set Field Values for the Interviewer section, click Add Field to add a 2nd field.
  14. Fill in the details:
    • Field 1: select Employee__c
    • Value 1: select $Record > Hiring_Manager__c
    • Field 2: select Position__c
    • Value 2: select $Record > Id
      Completed Create Records screen.
  15. Click Save.
  16. Enter Create Interviewer Record for the Flow Label.
  17. Click Activate.
  18. Click back button  to return to setup.

Test the Flow

Now that the flow is activated, you can test the automation you just created. But first, add a hiring manager user.

  1. From Setup, enter Users in the Quick Find box and select Users.
  2. Click New User and fill in the details.
Field Value

First Name

Kathy

Last Name

Cooper

Email

enter your own email

Username

kcooper@[your initials + your favorite color].com (e.g., kcooper@APyellow.com)

Nickname

kcoop

Title

Customer Support Manager

Role

Customer Support, North America

User License

Salesforce Platform

Profile

Standard Platform User

  1. Deselect Generate new password and notify user immediately.
  2. Click Save.

Now test the automation you created.

  1. Click app launcher to open the App Launcher, then select Recruiting.
  2. Click the Positions tab, then New.
  3. Select the record type Nontechnical Position, then click Next and fill in the details.
Field Value

Title

Super Support Supervisor

Status

New

Department

Support

Location

US

Hiring Manager

Kathy Cooper

Job Description

Manage a team that fields inquiries and cases from customers

Pay Grade

S-200

  1. Click Save.
  2. Click the Related tab.
  3. From the Interviewers related list, click an Interviewer number and note the values in the Employee and Position fields.

Now that you’ve set up an automation for creating interviewer records, move on to the next step, where you do some necessary prep work before you can set up an approval process for creating positions.

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities