我有一个名为医疗案例的实体
它与另一个名为family的实体具有1:N关系
我在医疗案例中有一个子网格,您可以在其中添加家庭
因此,为了获取涉及医疗案件的家庭名单,我进行了以下 api 调用
http://localhost/CRMSERVER/api/data/v8.0/new_medicalcase(bgcs0249-0a06-e611-941a-003002djlnc)?$expand=new_medical_new_family
当我不激活业务流程时,这工作正常
但是当我激活业务流程并刷新页面并刷新api调用时,它给出了以下错误
{
"error":{
"code":"","message":"Property 'stageid' is of an unrecognized EdmPropertyKind. Entity new_pokagonchildwelfarecases has duplicate navigation property names. All property names (Navigation and Structural property) must be unique in an Entity ","innererror":{
"message":"Property 'stageid' is of an unrecognized EdmPropertyKind. Entity new_pokagonchildwelfarecases has duplicate navigation property names. All property names (Navigation and Structural property) must be unique in an Entity ","type":"Microsoft.Crm.CrmHttpException","stacktrace":" at Microsoft.Crm.Extensibility.OData.CrmODataEntityTypeSerializer.CreateSelectExpandNode(EntityInstanceContext entityInstanceContext)\r\n at System.Web.OData.Formatter.Serialization.ODataEntityTypeSerializer.WriteEntry(Object graph, ODataWriter writer, ODataSerializerContext writeContext)\r\n at Microsoft.Crm.Extensibility.OData.CrmODataEntityTypeSerializer
当我停用业务流程时,创建一个新记录并通过更改 id 尝试对该实体的 api 调用,它工作正常。如果我激活业务流程,它会再次失败