具有相关实体错误的 Dynamics CRM upsert 请求

Dynamics CRM upsert request with related entities error

我正在使用 MS Dynamics CRM 2016 On-Premises。

我正在使用 Upsert 请求通过 OrganizationService 加载数据。

我收到一个错误:

Entity Id must be specified for Update

据我了解 - 相关活动(屏幕上 RelatedEntities 中的 [0])记录不存在,应在更新插入期间创建,并且应更新 wave 记录。 但是没有。我做错了什么?

您是否正在为该记录填充备用键?该记录必须具有 .Id 或 .KeyAttributes。

从您的屏幕截图来看,.Id 是一个空的 Guid,但不确定 .KeyAttributes 字段。