Open bo-stig-christensen opened 4 years ago
This looks to be related to #101 where other system field values are not set in the post operation plugin - it should be possible to add OwningBusinessUnit into the list of system attributes so that it is included.
Describe the bug In a Create Post-Operation plugin on an entity with calling user as the owner, Target Entity does not have an 'owningbusinessunit' attribute defined in Mockup Tests. However, in D365 this attribute is present in Target Entity in Post-Operation stage. Assuming same issue with a team as owner regarding 'owningteam' attribute.
No workaround possible, even setting the raw attribute becomes null in Mockup Test.
To Reproduce
A plugin is in place that contains this fragment:
The usage of OwningBusinessUnit.Id throws an exception in Mockup, but not in D365.
Expected behavior OwningBusinessUnit should be populated in Create Post-Operation as it is in D365.
Environment