Community
Showing results for 
Search instead for 
Do you mean 
Reply

Inserting Phone Numbers via SDK

Copper Contributor
Posts: 5
Country: USA

Inserting Phone Numbers via SDK

Any phone numbers that I insert via the SDK using cContact.Fields("TBL_CONTACT.BUSINSESS_PHONE",true) = "1234567890" is added to the DB with no errors  and displays correctly in ACT,  but when I do a lookup and specifiy Phone does not contain Data  the record is listed.  When I look at the

database the TBL_Phone record has the contactID,NUMBERDISPLAY and CountryCode  but no Numbervalue or MaskID.  So I assume that the lookup phone does not contain data looks at the numbervalue field.

 

Question How do I get the Numbervalue field of the TBL_Phone table filled via the SDK?

Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: Inserting Phone Numbers via SDK

Hiya,

 

Have you tried using the ContactFieldDescriptor object's SetValue() method e.g.:

 

ContactFieldDescriptor cField = oFRam.Contacts.GetCOntactFieldDescriptor("TBL_CONTACT.BUSINESS_PHONE",true);cField.SetValue(cContact,"1234567890");

 

Maybe that will update all data columns?

 

HTH

Vivek 

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog