Community
Showing results for 
Search instead for 
Do you mean 
Reply

Fields assoociated with createcontact method ?

Copper Contributor
Posts: 28
Country: United_Kingdom

Fields assoociated with createcontact method ?

Where do I find the list of fields assocaited with this method ?  In sample code obtained from this forum I have:

Dim ActFwk As New Act.Framework.ActFramework
Dim actCont As Act.Framework.Contacts.Contact
actCont = ActFwk.Contacts.CreateContact

With actCont

   .Company = "ABC"
   .FullName = "Janet Evans"
   .Update()

End With

FullName is field on TBL_CONTACT  where  Company is not. The field name is CompanyName.

 

I'm keen to find out where I look if I want to add aditional fields from  TBL_CONTACT to the update statement.

 

Thanks.

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Fields assoociated with createcontact method ?

Some field are 'hard coded' such as company and full name but most are mutable since the end user can remove or create field you need.

 

You need to iterate thru the field descriptor collection as seen in this posting:

http://community.act.com/t5/Act-Developer-s-Forum/Best-way-to-save-data-to-contact/m-p/189951/highli...

 

-- Jim Durkin

Copper Contributor
Posts: 28
Country: United_Kingdom

Re: Fields assoociated with createcontact method ?

Thanks Jim  - both for the solution and the explanation !