Newer Version Available
Try It Out: Create a Process That Updates Fields
Now that we've got our queue ready to go, we can get started creating our process.
- Return to the Process Builder and create a new process.
- Enter Assign Position to Recruiter for the process name. Press Tab to automatically enter the API name.
- For the process description, enter Reassign position records to a recruiter if they were created by another type of employee.
- For The process starts when, select A record changes, and then save.
- Click Add Object.
- Select Position for the object type.
While we know that recruiters should almost always own position records, we don't want to impede the organization if there's a special case in which a non-recruiter should own the record instead. Let's choose to evaluate this rule only when a record is created so that if an exception needs to be made, the process won't supersede any changes that were made by a recruiter.
- In the Start the process section, select only when a record is created.
- Save your changes.
Finally, we need to make sure that this process executes our specified action whenever a position record is created by someone who isn't a recruiter or a recruiting manager. Let’s define this criteria in our process.
- Click Add Criteria.
- Enter Reassign Position to Queue for the criteria name.
- Leave the Conditions are met selected.
- In the Set Conditions area:
- In the Field column select Position > Created By ID > Role ID > Name.
- Set the Operator column to Does not equal.
- In the Type column, select String.
- In the Value column enter Recruiter.
- Click Add Row.
- In the Field column select Position > Created By ID > Role ID > Name.
- Set the Operator column to Does not equal.
- In the Type column, select String.
- In the Value column enter Recruiting Manager.
- Click Save.
Nice work! Now our process checks whether a Position is created by someone who isn’t a recruiter or recruiting manager.
- From Setup, enter Queues in the Quick Find box, then select Queues.
- Click the Unclaimed Positions Queue in the Queue Name column.
- In the address bar of your browser, copy the 15-digit ID number at the end of the page address, for example, 00GD0000001FMfB. This is the ID for the queue.
- If you don’t already have it open, return to the Process Builder and reopen your Assign Position to Recruiter process.
- In the IMMEDIATE ACTIONS area on the canvas, click Add Action.
- Select Update Records.
- For Action Name, enter Reassign Position to Queue.
- Click in the Record Type field.
- Click Select the Position__C record that started your process, and then click Choose.
- In the Criteria for Updating Records section, leave the No criteria option selected.
- In the Set new field values for the records you updated section, select Owner ID for the field value.
- For Type, leave ID selected.
- For Value, paste the ID value copied from your browser. Remember, this is the queue’s ID.
- Click Save.
Nicely done! Before we leave this process behind, though, let's give it a second action—one that ensures that no positions will languish in the queue without being claimed by a recruiter. This time, we'll schedule the action so it executes at a later time.