Community
Showing results for 
Search instead for 
Do you mean 
Reply

URGENT - Lookup by Contact ID

Nickel Super Contributor
Posts: 441
Country: UK

URGENT - Lookup by Contact ID

I want to run a lookup by contact GUID, I can do this in v12 using the new lookup parameter that takes a sql statement but I need it to be backwards compatible.  As I cant find a way to get the ID field (TBL_CONTACT.CONTACTID) through the SDK does anyone have any idea how to do this.  I really don't want to have to loop all the contacts checking their ID, that will take forever!

 

TIA

 

Tom

Copper Super Contributor
Posts: 59
Country: USA

Re: URGENT - Lookup by Contact ID

Hi Tom,

 

What I usually do is use these two methods:

 

dim cl as ContactList = actAppl.ActFramework.Contacts.GetContactsByID(Nothing, new guid() {new guid("32 guid goes here")}) actAppl.UILookupManager.LookupContacts(Nothing, cl)

 

 Hope this helps

 

Hugo Vale
Datastream Custom Solutions
http://www.datastreamcs.com
Nickel Super Contributor
Posts: 441
Country: UK

Re: URGENT - Lookup by Contact ID

Thanks Hugo Smiley Happy

 

Tom