Community
Showing results for 
Search instead for 
Do you mean 
Reply

why i cant get contactnonusers ?

Accepted Solution Solved
Avid Listener
Posts: 83
Country: Malaysia
Accepted Solution

why i cant get contactnonusers ?

Hi All,

 

i can get myrecord in contact but i  cant get contactnonusers.

 

here is my code.

 

cContact = ActFwk.Contacts.GetContactsNonUsers(null);

 

Thanks.


Accepted Solutions
Solution
Accepted by topic author jeffng
‎09-25-2015 03:20 AM
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: why i cant get contactnonusers ?

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

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog

View solution in original post


All Replies
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: why i cant get contactnonusers ?

Hi,

 

Because your code is returning an unsorted ContactList object. You'll need to itterate through it to get individual contacts.

 

Vivek

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Avid Listener
Posts: 83
Country: Malaysia

Re: why i cant get contactnonusers ?

Hi,

 

No i need to get whole contact list from my databases. Not individual.

 

Thanks.

Solution
Accepted by topic author jeffng
‎09-25-2015 03:20 AM
Bronze Elite Contributor
Posts: 2,115
Country: United_Kingdom

Re: why i cant get contactnonusers ?

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

Vivek Gargav
Caldere Associates Ltd.
www.caldere.com
vgargav@caldere.com
My Blog
Avid Listener
Posts: 83
Country: Malaysia

Re: why i cant get contactnonusers ?

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.