Hello,
i want to add a compaign respense, but i can't insert a customer,
this is my code :
Entity CR = new Entity("campaignresponse");
CR.Attributes["subject"] = "Demande " + origine_source + " " + date;
CR.Attributes["cor_compte"] = new EntityReference("account", accid);
CR.Attributes["description"] = description;
CR.Attributes["receivedon"] = date;
CR.Attributes["customer"] = new EntityReference("account", accid);
Guid regardingobjectid = campaign_0[0].Id;
CR.Attributes["regardingobjectid"] = new EntityReference("campaign", regardingobjectid);
m_service.Create(CR);
thank you.
*This post is locked for comments