Hi,
I have a CContact entity that I am updating. At the same time I would like to update a field in the Name table as well as the Name_Reg table. I am able to get access to Name_Reg and update but I can not see the Name table. My code is
Get a valid contact from iBO then;
CExtTable t = contact.GetExtTableByName("NAME_REG");
CExtField f = t.Fields.Where(fn => fn.FieldName == "Pref_Phone").FirstOrDefault();
if(f !=null)
f.FieldValue = "TypeOfPhone";
etc...
contact.Save();
The above works fine. However, when I attempt the same using the below the Name table doesn't exist.
CExtTable t = contact.GetExtTableByName("NAME"); fn.FieldName == "CO_ID").FirstOrDefault();
f.FieldValue = "123456";
Is there a way to update the name table via iBO?
I'm using 15.1.1
Thanks in advance.
CContact does update the
CContact does update the Name table. GetExtTableByName only works for user-defined tables.
For Name.CO_ID, you need to update CContact.InstituteContactId.
Eric Means
System Architect, ASI