简体   繁体   中英

Creating CampaignResponse in CRM 2013

I'm trying to create a CampaignResponse using late-bound method in Dynamics 2013.

I found this document http://msdn.microsoft.com/en-us/library/bb959317.aspx but noticed that this is for Dynamics 4.0 and a lot of the Entity attribute types have changed. One example is that campaignresponse 's ownerid used to be a Lookup and I believe now is EntityReference .

I can't find updated information on Entities. How can I properly create a CampaignResponse using late-bound?

There isn't so much different in creating CampaignResponse than another entity.

Late bound will be something similar to this example:

Entity campaignResponse = new Entity("campaignresponse");
campaignResponse["subject"] = "My Campaign Response"
campaignResponse["regardingobjectid"] = new EntityReference("campaign", campaignId);
// other fields
service.Create(campaignResponse);

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