Scenario Generate EmployeeID - microsoft/MIMWAL GitHub Wiki
Employee ID Generator
Employee ID Generator: The Employee ID Generator uses a combination of Update Resource and Generate Unique Value Workflow Activities. This particular Workflow requires your FIM Environment to have a Resource in your FIM Environment called "Employee" as well as a custom Attribute Called "EmployeeID" If you need to assistance creating the "Employee" Resource or Creating and Binding Attributes within the FIM / MIM Portal, there are examples located on the Connector Space Blog
Prerequisites for this Employee ID Generator Workflow:
- Create the "Employee" Resource
- Create "Employee ID" attribute (Indexed String)
- Bind "Employee ID" attribute to the Employee Resource
- Bind "Employee ID" attribute to the User Resource
- Give Permissions to update new resource
- Give Permissions update Employee ID
- Create 1 Object within the Employee Resource
- Set the Value of the Employee ID of the new Employee Resource Object with a value you wish to start the Employee ID Generator from.
- Create an All Employee Objects Set




| Employee ID Generator | |
|---|---|
| 1st Activity | Action – FIMWAL2:Update Resources |
| Activity Display Name | Employee ID Lookup |
| Advanced Features | True |
| Query Resources | True |
| Queries | |
| Key | Employee |
| XPath Filter | /Employee |
| Activity Execution Condition | |
| Iteration | |
| Updates | |
| Value Expression | First([//Queries/Employee]) |
| Target | [//WorkflowData/Employee] |
| 2nd Activity | Action - FIMWAL2: Generate Unique Value |
| Activity Display Name | Generate New Employee ID |
| Activity Execution Condition | |
| Target for Generated Value | [//WorkflowData/EmployeeID] |
| Conflict Filter | /Person[EmployeeID='[//Value]'] |
| Query LDAP for Conflicts | False |
| Uniqueness Key Seed | 1 |
| Value Expressions | Add(ConvertToNumber([//WorkflowData/Employee/EmployeeID]),ConvertToNumber([//UniquenessKey])) |
| 3rd Activity | Action – FIMWAL2:Update Resources |
| Activity Display Name | Update Employee ID |
| Advanced Features | False |
| Updates | |
| Value Expression | Target |
| [//WorkflowData/EmployeeID] | [//Target/EmployeeID] |
| [//WorkflowData/EmployeeID] | [//WorkflowData/Employee/EmployeeID] |