Credential vs Me.Case.WorkingCredential
The important thing to consider when deciding to choose between these two functions is the CONTEXT: are you using this function in an ongoing case or outside of a case like Queries, Summary forms, Global forms etc?
- Use Credential, when it is required to use the information of the currently logged-in user in Query, Summary or Global forms etc (i.e., without context).
- Use Me.WorkingCredential, when it is required to use the information of the current user allocated to the current task in Process forms or expressions (i.e., with context).
Examples
| Property | Description | |
| AreaName | Returns the user’s area name. | Me.WorkingCredential.AreaName or Credential.AreaName |
| FullName | Returns the user’s full name. | Me.WorkingCredential.FullName or Credential.FullName |
| IsInPosition | Returns True if the user has a specified Position, False otherwise. | Me.WorkingCredential.IsInPosition or Credential.IsInPosition |
| IsInRole | Returns True if the user has a specified Role, False otherwise. | Me.WorkingCredential.IsInRole or Credential.IsInRole |
| IsInSkill | Returns True if the user has a specified Skill, False otherwise. | Me.WorkingCredential.IsInSkill or Credential.IsInSkill |
| IsInStakeholder | Returns True if the user has a specified Stakeholder, False otherwise including when a Stakeholder is disabled. | Me.WorkingCredential.IsInStakeholder or Credential.IsInStakeholder |
| UserId | Returns the user’s id. | Me.WorkingCredential.UserId or Credential.UserId |
| UserProperties | Returns the value of a specified user property | Me.WorkingCredential.UserProperties or Credential.UserProperties |
More functions: https://help.bizagi.com/bpm-suite/en/index.html?case-working-credential.htm