Quantcast
Viewing all articles
Browse latest Browse all 2504

queryObjects cannot get email from Contact (1 Comment)

Topic by albert hua

Content

Hi there,

I am trying to get the email address from the Contact table using queryObjects. I can get other information such as ID, name, etc. The code I am using is below:

String queryString = "SELECT Contact FROM Contact WHERE Contact.Login = 11111111;";

...

for(RNObject obj : rnObjects){
        Contact contact = (Contact)obj;
        Email[] emailArray = contact.getEmails().getEmailList();    //get nullpointexception
        //firstName = contact.getName().getFirst();
}

Any ideas please?

Cheers,

AL

 

 

Image

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 2504

Trending Articles