You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pipeline simulation, late-bound entities work most of the time. However, the framework skips looking for registered plugin steps for Delete requests. This includes both IOrganizationService.Delete(..) and IOrganizationService.Execute(new DeleteRequest {...}).
The following code appears to be where the issue lies.
Within IXrmFakedContextPipelineExtensions.GetPluginStepsForOrganizationRequest, the following code exists. Because the Delete request's target is of type EntityReference, the code looks for a reflected type matching the logical name of the target. Since only late-bound types are used here (i.e. Entity), it will never call context.GetStepsForStage.
When using pipeline simulation, late-bound entities work most of the time. However, the framework skips looking for registered plugin steps for Delete requests. This includes both
IOrganizationService.Delete(..)
andIOrganizationService.Execute(new DeleteRequest {...})
.The following code appears to be where the issue lies.
https://github.com/DynamicsValue/fake-xrm-easy-plugins/blob/2x-dev/src/FakeXrmEasy.Plugins/IXrmFakedContextPipelineExtensions.cs#L459
Within
IXrmFakedContextPipelineExtensions.GetPluginStepsForOrganizationRequest
, the following code exists. Because the Delete request's target is of typeEntityReference
, the code looks for a reflected type matching the logical name of the target. Since only late-bound types are used here (i.e.Entity
), it will never callcontext.GetStepsForStage
.The text was updated successfully, but these errors were encountered: