Community
Showing results for 
Search instead for 
Do you mean 
Reply

Adding a contact to a contact list

Astute Commentator
Posts: 168
Country: United States

Adding a contact to a contact list

Hi Everyone,

 

I'm trying to add a contact to an existing contact list. In my case, I want to add the MyRecord to a contact list (Act.Framework.Contacts.ContactList) that already exists. Any ideas on how to do this?

 

Thank you in advance.

 

T

Platinum Elite Contributor
Posts: 14,384
Country: Australia

Re: Adding a contact to a contact list

Not sure if this is any help ... I haven't played with that in the SDK.

In ACT!, there is an option when doing additional Lookups to "Add to Lookup" ... although there is no such option for the My Record specifically.
Employee
Posts: 1,163
Country: USA

Re: Adding a contact to a contact list

The LookupManager class has methods for appending to and removing from an existing lookup. In this case we'll want to use the LookupContactsAppend method.

Matthew Wood
Act! SDK Support
Community Moderator
Astute Commentator
Posts: 168
Country: United States

Re: Adding a contact to a contact list

The Lookup manager does me no good. 

 

This is what I do:

   1- Retrieve a contacts list for a group

   2- If the MyRecord is not part of this list, add it to the list.

 

As far as I know, only the contact list object is returned by the group manager.  

 

Do you have any way to do this?

 

T

Employee
Posts: 1,163
Country: USA

Re: Adding a contact to a contact list

There are no methods for appending or adding to a contact list like to a lookup, also if you have any plans to display this contact list you'll likely want to create a lookup anyway rather than just displaying a list of contacts, as doing the latter will prevent you from storing the lookup and as such won't be able to navigate 'back' and 'forward' to it.

 

 

 

 

Matthew Wood
Act! SDK Support
Community Moderator
Astute Commentator
Posts: 168
Country: United States

Re: Adding a contact to a contact list

So there is no way to dynamically change a contact list like adding or subtracting contacts. That is a pretty major lack of functionality in such a widely used object. 

 

I'd suggest you add it to future releases.

 

Thanx.

 

T