简体   繁体   中英

Dynamics CRM upsert request with related entities error

I am using MS Dynamics CRM 2016 On-Premises.

I am loading data through OrganizationService, using Upsert request.

屏幕截图

And I am getting an error:

Entity Id must be specified for Update

As I understood - related Campaign ([0] in RelatedEntities on screen) record does not exist and should be created during upsert, and wave record should be updated. But there isn't. What am I doing wrong?

Are you populating the Alternate Keys for that record? The record must have either an .Id or .KeyAttributes.

From your screenshot the .Id is an empty Guid but not sure about the .KeyAttributes field.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM