简体   繁体   English

在CRM 2013中创建CampaignResponse

[英]Creating CampaignResponse in CRM 2013

I'm trying to create a CampaignResponse using late-bound method in Dynamics 2013. 我正在尝试使用Dynamics 2013中的后期绑定方法创建CampaignResponse。

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. 我在http://msdn.microsoft.com/zh-cn/library/bb959317.aspx上找到了此文档,但注意到这是针对Dynamics 4.0的,并且许多Entity属性类型已更改。 One example is that campaignresponse 's ownerid used to be a Lookup and I believe now is EntityReference . 一个例子是campaignresponseownerid曾经是一个Lookup ,我相信现在是EntityReference

I can't find updated information on Entities. 我找不到有关实体的更新信息。 How can I properly create a CampaignResponse using late-bound? 如何使用后期绑定正确创建CampaignResponse?

There isn't so much different in creating CampaignResponse than another entity. 创建CampaignResponse并没有什么不同。

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);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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