-
Notifications
You must be signed in to change notification settings - Fork 180
The 'Retrieve' method does not support entities of type 'activityparty'. #332
Comments
Hi Daniel, Thanks for raising this issue... indeed, if CRM is giving that error we should then introduce the same in FakeXrmEasy. ActivityParty is meant to be used as an intersect entity between the activity (email, phonecall, etc) and the recipients so maybe it's forcing to retrieve entity records against the activity entity first (just guessing here... I've personally never had to query activity party records directly..) |
Hi Jordi, [Output("Party Entity Reference")]
[ReferenceTarget("contact")]
public OutArgument<EntityReference> ReferencedEntity { get; set; } to [Output("Party Entity Reference")]
[ReferenceTarget("contact")]
public OutArgument<EntityReference> ReferencedEntity { get; set; } The second issue was I also had to remove any direct retrievals of the ActivityParty entity. For anyone struggling to query the ActivityParties, the only way to access was it was: phonecall.GetAttributeValue<EntityCollection>(prop)?.Entities.FirstOrDefault(); where |
Thx for the update Daniel, so maybe I'll leave this a new feature, i.e. Raise an exception whenever a retrieve is made against the activity party entity directly. It would be nice to raise an exception if someones tries to return an activity party as an OutArgument too |
Hello all,
I've got code that is passing tests perfectly locally using fake-xrm-easy, but failing when running in the CRM.
Here's the error message:
I'm not sure what would be involved in patching this, but it would have been nice to get this error message locally as well as on the server.
Also, does anyone know a workaround for this? I don't understand why I can't retrieve a particular entity, so I'm not really sure how to proceed.
Thanks a ton!
The text was updated successfully, but these errors were encountered: