Workflows have the capability to capture the details of a user who is currently logged in and update the value of a compatible field. This allows for a seemingly dynamic process. A common example is using the workflow to capture the user’s role while logged in for their approval process.
- Navigate to Customization > Workflow > Workflows
- Desired Workflow: Click Edit
- Click on the State where you want the workflow field to be created
- State tab: Click Fields
- Bottom right corner: Click New State Field
- Workflow State Field:
- Label: Enter Test Workflow Field
- ID: Enter _tstwffield
- Type: Select List/Record
- List/Record: Select Role
- Store Value: Enter Checkmark
- Click Validation & Defaulting tab
- Dynamic Default: Select Current User
- Click Save
- State tab: Click Actions
- Bottom right corner: Click New Action
- Click Set Field Value
- Basic Information:
- Trigger On: Select Entry
- Parameters:
- Field: Select Test Workflow Field
Note: Select here the Workflow State Field you created - Value:
- From Field:
- Record (Join Field): Select Current Record
- Field: Select User Role
- From Field:
- Field: Select Test Workflow Field
- Click Save