Community
Showing results for 
Search instead for 
Do you mean 
Reply

Contact Key vs ID

Nickel Elite Contributor
Posts: 508
Country: USA

Contact Key vs ID

When working with Activities, there is a method, e.g.:
 
    Dim aList As ActivityContactCollection = activity.GetActivityContactsFromDB()
 
that then allows you to get the Contact from the list (aList), and then get the Key from the contact, which very much looks like a GUID
 
Then, there is an ID property in a Contact, e.g.:
 
    Dim cGuidArray As Guid() = {ActFwk.Contacts.GetMyRecord().ID}
 
which, of course, is a GUID.
 
However, unless I'm doing something totally wrong, which is a possibility, they don't seem to be the same thing.  They do have the same "value", but programatically are different.  The following does not work with the "Key", but does with the "ID":
 
    ActFwk.Contacts.GetContactsByID(Nothing, cGuidArray)
 
Basically, I'm trying to lookup a contact by the GUID, which I have from one or more contacts from an activity (i.e. "Key").  Thanks for any insight...
Richard Brust
ACT! Certified Consultant
richard@rbrDataSolutions.com