Horje
Set value into lookup field in console app using dynamic CRM 365 Code Example
Set value into lookup field in console app using dynamic CRM 365
Entity recordToUpdate = service.Retrieve("contact", contactId, new ColumnSet(true));
recordToUpdate["parentcustomerid"] = new EntityReference("account", accountId);
service.Update(recordToUpdate);
Set value into lookup field in console app using dynamic CRM 365
Account acc = new Account();
acc.Attributes["name"] = "Ram"; // this values got inserted
acc.Attributes["age"] = "22"; // this values got inserted
acc.Attributes["lookupfieldid"] = new EntityReference("contact", contactId); // if lookupfieldid is pointing to contact entityservice.Create(acc); // to create account




Csharp

Related
c# how do you check if a string contains only digits Code Example c# how do you check if a string contains only digits Code Example
convert bytes to string and back c# Code Example convert bytes to string and back c# Code Example
c# generate random number Code Example c# generate random number Code Example
unity3d change player position Code Example unity3d change player position Code Example
visual studio windows form exit button Code Example visual studio windows form exit button Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11