Relationship relation = new Relationship("campaignlist_association");
Entity campaign = (from c in orgServiceContext.CreateQuery("campaign")
select c).FirstOrDefault<Entity>();
foreach (Guid id in listsMarketingGuid)
{
Entity list = (from l in orgServiceContext.CreateQuery("list")
where l["listid"].Equals(id)
select l).FirstOrDefault<Entity>();
orgServiceContext.AddLink(campaign, relation, list);
orgServiceContext.AddLink(list, relation, campaign);
}
orgServiceContext.SaveChanges();
我想營銷列表和活動,但增加之間的關係時執行的SaveChanges statment我得到一個錯誤「不支持CampaignItem助理」。 你有什麼想法嗎? 感謝Dynamics CRM中2011 addlink有關係campaignlist_association
你在哪裏找到「AddItemCampaignRequest」? –