Community
Showing results for 
Search instead for 
Do you mean 
Reply

Newbie trying to read contact info

Accepted Solution Solved
New Member
Posts: 6
Country: USA
Accepted Solution

Newbie trying to read contact info

I'd appreciate a quick vb.net pointer or two on how to actually read the contacts.  I did this successfully about eight years ago but need a refresher.

 

I remember setting up the following years ago:

 

dim contactname as string

with [SOMETHING]

    .first

    do while .iseof=false

        contactname = .SOMETHING       

        .next

    loop

end with


Accepted Solutions
Solution
Accepted by topic author ndepeyster
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Newbie trying to read contact info

There's a couple ways to get a list. One would be to open the diagnostic utility (start -> run "actdiag"), go to the databaselist, right click your database and choose reports -> field detail report.

 

You could also within VS get a collection of DBFieldDescriptors and view them from within visual studio.

Matthew Wood
Act! SDK Support
Community Moderator

View solution in original post


All Replies
Employee
Posts: 1,163
Country: USA

Re: Newbie trying to read contact info

Is there any particular contact your looking for?

 

For isntance we can retrieve the current contact like so: Contact thisContact = ActApplication.ApplicationState.CurrentContact;

Or we can get a list with all the contacts: ContactList cl = ActFramework.Contacts.GetContacts(null)

 

It looks like from your example you're trying to get the name, which is a public property of a contact object:

string name = Contact.Name;

 

If your interested in other field values, do a search on this forum, there should be several examples of folks retrieving field information on a contact.

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

Re: Newbie trying to read contact info

Is there a list of field descriptions for act.framework.contacts.contact.contactfields?

Platinum Elite Contributor
Posts: 14,384
Country: Australia

Re: Newbie trying to read contact info

Are you trying to read all contacts, a lookup of contacts or current contact? Specific fields?
Solution
Accepted by topic author ndepeyster
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Newbie trying to read contact info

There's a couple ways to get a list. One would be to open the diagnostic utility (start -> run "actdiag"), go to the databaselist, right click your database and choose reports -> field detail report.

 

You could also within VS get a collection of DBFieldDescriptors and view them from within visual studio.

Matthew Wood
Act! SDK Support
Community Moderator