Skip to main content

WorkflowData Usage

What is WorkflowData.Context?

  • It corresponds to the Sessions used on the form side to the Flow side.
  • The sample output of Session used on the flow side of the Synergy environment is as follows;
    ''json { "Instance": "**", "Token": "**", "Language": "en-US", "EncryptedData": "**", "UserId": 13, "Username": "oselcuk", "TokenId": "**", "AuthenticationType": 1, "InternalUserId": 13, "InternalUsername": "oselcuk", "Positions": [], "DelegationId": null, "Severity": 5, "FootPrint": "**", "TraceId": "***", "Baggage": {}, "Host": null }
## Flow Side Usage
- The sample code block that returns the id and username values of a sample user is as follows;

''csharp
string userId = _workflowData.Context.UserId.ToString();
string userName = _workflowData.Context.Username;