delegateas/XrmMockup

Workflow context initiatingUserId is always default(Guid)

maerger opened this issue · 0 comments

Im trying to write unit tests for creating accounts. There is a custom Workflow action triggered on account which is using the attribute 'initiatingUserId' of the IWorkflowContext interface to gather security roles the user is associated with. Unfortunately the attribute is always an empty guid:

Steps to reproduce the behavior:

  1. Create a workflow using a custom workflow action and trigger on create of account
  2. Create metadata
  3. Create XrmMockup context and crete account
  4. The workflow is triggered but the issue appears

I would expect the id of the user given in the creation of the organization service is equal to the initiatingUserId value

Screenshots

image

Environment

  • CRM/D365/CDS version: 9.2
  • Tool version: 1.8.0