Hi
I have a plugin in C# that updates Entities during the creation process. This is working just fine except for Entitlements.
I update a custom field on the Entitlement:
entity.Attributes[fieldName] = "some value";
_dynamicsOrganizationService.Update(entity);
This throws the following error:
"You can't deactivate an entitlement when it's in the draft state."
I don't get it! The statecode and statuscode are both 0 ("Draft")
So for some reason Dynamics thinks I am trying to deactivate the entitlement entity when I am updating it.
Any help on this matter i appreciated!
-Peter-