Newer Version Available
Try It Out: Create a Workflow Rule That Updates Fields
Now that we've got our queue ready to go, we can go ahead and define our workflow rule.
- From Setup, click .
- Click New Rule.
- In the Object drop-down list, choose Position, and click Next.
- In the Rule Name text box, enter Assign Position to Recruiter.
- In the Description text box, enter Reassign position records to a recruiter if they were created by another type of employee.
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 workflow won't supersede any changes that were made by a recruiter.
- In the Evaluate the rule when a record is: field, select created.
- In the Rule Criteria section:
- Set the Field column to Current User: Role.
- Set the Operator column to not equal to.
- Set the Value column to Recruiter, Recruiting Manager.
- Click Save & Next.
- In the Immediate Workflow Actions area, click Add Workflow Action, and select New Field Update.
- In the Name text box, enter Reassign Position to Queue.
- In the Description text box, enter Assign the Position to the Unclaimed Positions Queue.
- In the Field to Update drop-down list, choose Owner.
Once you make a selection in this drop-down list, new options appear just below depending on the selection that you made.
- In the Owner drop-down list, choose Queue.
- Click the lookup icon (
), and
select Unclaimed Positions Queue. - Select Notify Assignee. (This option is unavailable when user control over task assignment notifications is enabled.)
- Click Save.
Not too hard! Before we leave this workflow rule behind, though, let's give it a second workflow action—one that ensures that no positions will languish in the queue without being claimed by a recruiter. This time, we'll use a time-dependent workflow action.