Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

campaign response

$
0
0

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.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images