Community
Showing results for 
Search instead for 
Do you mean 
Reply

Adding Contacts to a ContactList

Accepted Solution Solved
Tuned Listener
Posts: 44
Country: Canada
Accepted Solution

Adding Contacts to a ContactList

How do I go about adding contacts to a contactlst. I want to use the code actApp.UILookupManager.LookupContacts() to create a lookup of contacts but I need a contactlist to do that. 

 

I currently am going through each contact using:

 

For each contact as act.framework.contacts.contact in actapp.actframework.contacts.getcontacts(Nothing)

Next

 

Inside that block I am checking if the contacts birthday is today, I want to then add that contact to the contactlist if it is so that I can create a lookup of all the birthdays that are today. Any ideas on how I do that.


Accepted Solutions
Solution
Accepted by topic author mattrob
‎09-25-2015 03:20 AM
Copper Contributor
Posts: 14
Country: Germany

Re: Adding Contacts to a ContactList

You can take your contact's IDs into an array of Guids and get a ContactList using ActFramework.Contacts.GetContactsByID method. A bit clumsy, but it works.

View solution in original post


All Replies
Solution
Accepted by topic author mattrob
‎09-25-2015 03:20 AM
Copper Contributor
Posts: 14
Country: Germany

Re: Adding Contacts to a ContactList

You can take your contact's IDs into an array of Guids and get a ContactList using ActFramework.Contacts.GetContactsByID method. A bit clumsy, but it works.
Tuned Listener
Posts: 44
Country: Canada

Re: Adding Contacts to a ContactList

That worked great, thanks for your help!