04-10-2009 12:02 AM
Hi All,
i can get myrecord in contact but i cant get contactnonusers.
here is my code.
cContact = ActFwk.Contacts.GetContactsNonUsers(null);
Thanks.
04-10-2009 06:25 AM
Hi,
I'm not sure I understand what the problem is? The code snippet you gives you your ContactList object excluding User Contact Records. If you want ALL contacts:
cContact = ActFwk.Contacts.GetContacts(null);
Is that what you are after?
HTH
Vivek
04-10-2009 01:31 AM
Hi,
Because your code is returning an unsorted ContactList object. You'll need to itterate through it to get individual contacts.
Vivek
04-10-2009 01:35 AM
Hi,
No i need to get whole contact list from my databases. Not individual.
Thanks.
04-10-2009 06:25 AM
Hi,
I'm not sure I understand what the problem is? The code snippet you gives you your ContactList object excluding User Contact Records. If you want ALL contacts:
cContact = ActFwk.Contacts.GetContacts(null);
Is that what you are after?
HTH
Vivek
04-12-2009 07:56 PM
Hi Vivek,
yes i managed to get all the contacts in tbl_contact.
by
Contact cContact;
ContactList cList;
cList = ActFwk.Contacts.GetContacts(null);
cContact = cList[i];
dr["CompanyName"] = cContact.Fields["TBL_CONTACT.COMPANYNAME", true];
Hope can help other forummers.
Thanks.