Community
Showing results for 
Search instead for 
Do you mean 
Reply

ContactField "Company" vs. Company group/object

New Member
Posts: 21
Country: USA

ContactField "Company" vs. Company group/object

Hi,

 

I would like to get the Company field for a contact via .NET. Is this a ContactField vs. the actual company object? I am interested in the field value.

 

Thanks,

Employee
Posts: 1,163
Country: USA

Re: ContactField "Company" vs. Company group/object

Yes, there is a company field on the contact table, in fact the Company is a public property for the Contact, however to get the value you'll need to retrieve the FieldDescriptor. The psuedo code would look something like:

 

ContactFieldDescriptor compField = ActApp.ActFramework.Contacts.GetContactFieldDescriptor("TBL_CONTACT.COMPANY");

string theValue = compField.GetValue(myContact);

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 21
Country: USA

Re: ContactField "Company" vs. Company group/object

Perfect! Thanks so much.