Using Lookup Tables to Populate the Recruiter for Job Requisitions

Objective

After completing this lesson, you will be able to configure a custom lookup table to automatically assign recruiters to job requisitions.

Lookup Tables for Complex Business Rules in the Job Requisition

One of the most common use cases for using business rules with lookup tables is populating fields within the Job Requisition form. Due to the nature of some fields, complex logic is needed to ensure that the right data is automatically populated into specific fields. This is especially true for operator fields within the job requisition, including the Recruiter field.

Assigning recruiters to job requisitions can be a repetitive and error-prone task, especially when recruiters specialize in specific departments or divisions. Creating and using a custom lookup table to automatically populate the Recruiter field in job requisitions saves time, reduces errors, and eliminates the need for manual assignment. The process involves several steps:

  1. Create the Custom Lookup Table Object
  2. Create Lookup Table Combinations
  3. Export and Import Lookup Tables
  4. Configure the Business Rule (for customers who don't have SAP SuccessFactors Position Management)
  5. Apply the Business Rule

Sample Lookup Table

Because every customer’s configuration is different, you may need a few (or many) variables to determine which recruiting user should be selected for the job requisition.

Let’s think of the lookup table as an IF/THEN statement. To understand what you will need to configure in your lookup table, think of the logic to determine the recruiter. For example, if we need to evaluate the Department and Division of the job requisition to determine our Recruiter, our logic would be something like:

  • IF the job requisition Department is equal to X
  • AND the job requisition Division is equal to Y
  • THEN set the Recruiter to be equal to Z

However, lookup tables operate a bit differently. Instead of using a business rule to define our logic, we will store a table of data that resembles the logic.

Custom Lookup Table

Custom Lookup TableDepartment

(Field defined in Object Definition)

Field Type can be text, picklist or object.

Division

(Field defined in Object Definition)

Field Type can be text, picklist or object.

Recruiter

(Field defined in Object Definition)

Field Type will be User ID.

Combination #1

(Created in Manage Data)

SalesServicespaulaprice
Combination #2Talent AcquisitionHuman Resourcesoliviaollie
Combination #3Shared ServicesIT Servicesmannyrodrig

Before you create your lookup table, you will need to understand the following regarding your current configuration and requirements:

  • What fields in the job requisition will determine which recruiter should be selected? (For example, Business Unit, Division, Department, Location.)
  • How are those fields defined in the job requisition? (For example, are you using picklist fields, object fields, text fields, and so on?)

Once you understand your requirements, you can begin to build your lookup table structure to prepare for the creation of your object definition and creation of your lookup table combinations.

Create Custom Lookup Table Object

Once you have your requirements defined, you can create your lookup table using custom objects. Within the custom object, you will create fields to represent the variables within your table.

Steps

  1. Navigate to Configure Object Definition.

  2. Select Create New→Object Definition.

  3. Enter the following metadata details for the Object Definition:

    • Code:cust_RecruiterLookup
    • Effective Dating:Basic
    • API Visibility:Editable
    • Status:Active
    • Label:Recruiter Lookup

    Note

    The other metadata details can be left as they are listed. We do not need to change other details for this configuration.
  4. Configure the Department, Division, and Recruiter fields for the object. Under the Fields section, use the empty cust field to define the custom fields:

    Custom Lookup Table

    Field IDDatabase Field NameMaximum LengthData Type

    Choose field type based on job requisition config.

    Details

    Update the details for each custom field configured.

    cust_DepartmentLeave blank. System populates this data automatically.255String / Picklist / Object

    Source Type

    (If using a picklist or object field, insert the Picklist ID or object name.)

    Label

    (Insert the label of the field. This label will appear in Manage Data when creating new combinations in your lookup table.)

    cust_DivisionLeave blank. System populates this data automatically.255String / Picklist / Object

    Source Type

    Label

    cust_RecruiterLeave blank. System populates this data automatically.100User

    Source Type

    Label

Result

Screen shows the configuration of a custom object, labeled Recruiter Lookup. This object configuration includes custom fields for Department, Recruiter and Division.

Create Lookup Table Combinations

Steps

    Task 1: Create Lookup Table Data for the First Recruiter

  1. Navigate to Manage Data.

  2. Select Create New→Recruiter Lookup.

  3. Populate the object details as follows:

    • externalCode:1
    • externalName:1
    • Department: Select the appropriate value.
    • Recruiter: Insert the appropriate user ID for the recruiter that should be inserted into the job requisition.
    • Division: Select the appropriate value.
    • Effective Start Date: Enter the date you would like this combination to take effect (for example, today’s date, or you can use 01/01/1900).
  4. Select Save.

    Task 2: Create Lookup Table Data for the Second Recruiter

    Repeating the steps in Task 1, create your second combination, referencing the Division and Department values you have populated in the sample table for Combination #2.

  5. In Manage Data, select Create New→Recruiter Lookup.

  6. Populate the object details as follows:

    • externalCode:2
    • externalName:2
    • Department: Select the appropriate value.
    • Recruiter: Insert the appropriate user ID for the recruiter that should be inserted into the job requisition.
    • Division: Select the appropriate value.
    • Effective Start Date: Enter the date you would like this combination to take effect (for example, today’s date, or you can use 01/01/1900).
  7. Select Save.

Export and Import Lookup Tables

When you have large amounts of data that needs to be created within your lookup table (or many combinations), you can use the export and import functions within Admin Center to create your data in bulk.

Steps

    Task 1: Export the Lookup Table CSV File

  1. Navigate to Admin Center→Import/Export Data.

  2. Select Export Data:

    • Select Generic Object:Recruiter Lookup
    • Include Dependencies: Yes
    • Include Immutable IDs: No
    • Include Inactive Records: No
    • Exclude Reference Objects: No
    • Select all data records: Yes
    • Key Preference: Business Key
    • Hide External Code: No
    • Identity Type: UserID
  3. Select Export.

  4. Navigate to Monitor Job to find the export file you have requested.

    1. Find the Job Name MDFZIP Export_cust_RecruiterLookup.

    2. Select Download Status.

    3. Open the Zip File called Recruiter Lookup.csv.

  5. Once you have opened the file, you will find the first two lookup table combinations that you have created. You can use this file to create the rest of your data and save your updates.

    Task 2: Import the Lookup Table CSV File
  6. Navigate to Import/Export Data.

  7. Select Import Data.

    • Select Generic Object:Recruiter Lookup
    • Upload the Recruiter Lookup CSV file
    • Include Dependencies: Yes
    • Include Immutable IDs: No
    • Include Inactive Records: No
    • Exclude Reference Objects: No
    • Select all data records: Yes
    • Key Preference: Business Key
    • Hide External Code: No
    • Identity Type: UserID
  8. Select Import.

Configure the Recruiter Lookup Rule

In this procedure, you will create the business rule to populate the Recruiter field using the lookup table data you have created.

Steps

  1. Navigate to Admin Center→Configure Business Rules.

  2. Select + to create a new business rule.

  3. Select Recruiting.

  4. Select the Configure Business Rules on Job Requisition scenario.

  5. Enter the following business rule details:

    • Rule Name:REC_RecruiterLookup
    • Rule ID: Prepopulated by the system
    • Rule Start Date: 01/01/1900
    • Rule Description (Optional): Automatically prepopulates Recruiter field using Recruiter Lookup Table
    • Job Requisition Template: Select your job requisition template
    • Purpose: Select the trigger you would like to use
  6. Select Next.

  7. Create the following IF statement: IF Recruiter is equal to "Null"

  8. Create the following THEN statement:

    • Select Output type Set
    • Select Recruiter to be equal to > Lookup() > Recruiter Lookup
    • Select Output field Recruiter where…
    • Effective Date is equal to System Context.Effective Date
  9. Select the + icon to add a new expression:

    • Recruiter Lookup > select Division is equal to Job Requisition > Division (click + to expand all Department attributes) > Code
    • Recruiter Lookup > select Department is equal to Job Requisition > Department (click + to expand all Department attributes) > Code
  10. Choose Save.

    Steps 7, 8, 9 are shown in the image below.

    Screen shows the configuration of a business rule which uses an IF statement to validate if the Recruiter field is null. This is followed by a THEN statement that sets Job Requisition (All).Recruiter using a Lookup function with several matching criteria for Department, Division, and Effective Date.

Result

A business rule to populate the Recruiter field using the lookup table data has been created.

Apply the Business Rule

When the rule creation is done, the rule must be attached to a job requisition. To determine when the business rule should trigger, we will use the below decision matrix to determine what the best solution is for your organization.

When Should Business Rule Trigger

When Should Business Rule Trigger?The Division and Department fields are manually entered by the Recruiting end users…The Division and Department fields are auto-populated using an integration…
I want the Recruiter field to prepopulate prior to saving the requisition…

Field Change

The business rule should be applied to whichever field (Division or Department) is manually entered last by the Recruiting end user.

Field Change

The business rule can be applied to any required field that is manually entered by the Recruiting end user.

I want the Recruiter field to populate after saving the requisition…SaveSave

Steps

  1. Navigate to Admin Center→Manage Rules in Recruiting.

  2. Ensure you are in the Job Requisition tab.

  3. Select the appropriate Job Requisition template you would like to apply the rule to.

  4. If using the Field Change trigger:

    1. Navigate to the Field Change Rules section.

    2. Select + Add Another.

    3. Select the field that is manually populated by the Recruiting user. You can reference the decision matrix to help you understand which field to use.

    4. Select the REC_RecruiterLookup business rule.

  5. If using the Save trigger:

    1. Navigate to Template-level Rules.

    2. Within Save Rules, select +Add Another.

    3. Select REC_RecruiterLookup.

Result

A decision matrix has been used to determine when the business rule should trigger.

Summary

  • Recognize the Use Case: Understand that lookup tables are useful for automatically populating fields in job requisitions, especially for complex fields like the recruiter.
  • Outline the Steps: Identify the steps involved in configuring a custom lookup table, including creating the custom object, creating lookup table combinations, exporting/importing data, configuring the business rule, and applying the rule.
  • Explain Lookup Table Logic: Define the logic behind lookup tables as an IF/THEN statement, where specific criteria (for example, department and division) determine the recruiter assigned.
  • Describe Custom Object Creation: Explain how to create a custom object to define the structure of the lookup table, including specifying fields like Department, Division, and Recruiter with appropriate data types.
  • Summarize Combination Creation: Describe how to populate the lookup table with data combinations in Manage Data, linking specific department and division values to corresponding recruiters.
  • Configure the Business Rule: Configure a business rule to use the lookup table to automatically populate the Recruiter field based on the Division and Department fields in the job requisition.