Showing results for 
Search instead for 
Do you mean 

how to update existing record instead of create new record?

Avid Listener
Posts: 83
Country: Malaysia

how to update existing record instead of create new record?

Hi All,


I need do some enhancements to integration.


1) When detected have duplication of records in ACT DB, can I replace the currect record to new record? As now it will create a new record.

Contact NewContact2;

ContactList cList2;

ContactFieldDescriptor cField2;


NewContact2 = oFram.Contacts.CreateContact();

                            NewContact2.Fields["TBL_CONTACT.COMPANYNAME",true] = name;

                            NewContact2.Fields["TBL_CONTACT.FULLNAME", true] = contact;

                            NewContact2.Fields["TBL_CONTACT.BUSINESS_EMAIL", true] = e_mail;

                            NewContact2.Fields["TBL_CONTACT.CONTACTWEBADDRESS", true] = web_site;

                            NewContact2.Fields["TBL_CONTACT.MOBILE_PHONE", true] = phonea;

                            NewContact2.Fields["TBL_CONTACT.FAX_PHONE", true] = fax;

                            NewContact2.Fields["TBL_CONTACT.BUSINESS_PHONE", true] = phone;

                            NewContact2.Fields["TBL_CONTACT.BUSINESS_LINE1", true] = add1;

                            NewContact2.Fields["TBL_CONTACT.BUSINESS_LINE2", true] = add2;

                            NewContact2.Fields["TBL_CONTACT.BUSINESS_LINE3", true] = add3;

                            NewContact2.Fields["TBL_CONTACT.CATEGORY", true] = "Customer";

                            NewContact2.Fields[fName, true] = cust_id;

                            NewContact2.Fields[fadd4, true] = add4;


cList2 = oFram.Contacts.GetDuplicateContacts(NewContact2);


If I detect clist2 got duplicated, how I can replace new record to existing ACT DB record ?