C# assign the contact to an account.
//C# assign the contact to an account.
Entity account = new Entity("account");
account["name"] = "Test Account1";
EntityReference primaryContactId = new EntityReference("contact", contactId);
account["primarycontactid"] = primaryContactId;
No comments:
Post a Comment