Welcome to the CrackBerry Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 3 of 3
  1. mhant's Avatar
    CrackBerry Newbie

    Posts
    9 Posts
    Global Posts
    10 Global Posts
    Thread AuthorThread Author   #1  

    Question Email always null in WebWorks Contact.find

    I am using the blackberry.pim.contacts WebWorks API to get the phone contacts and I receive the data as desired, but for some reason the "emails" array is always null. Anyone run into this, or know if there is an something missing from the permissions in my config.xml (copied below)?

    config.xml
    ...
    <rim:permissions>
    <rim:permit>access_pimdomain_contacts</rim:permit>
    </rim:permissions>
    ...
    <feature id="blackberry.pim.contacts" required="true" version="1.0.0.0"/>
    ...
  2. mhant's Avatar
    CrackBerry Newbie

    Posts
    9 Posts
    Global Posts
    10 Global Posts
    Thread AuthorThread Author   #2  

    Default

    ok for anyone else who gets stuck with this issue, the problem wasn't with the config.xml at all it was in the js call.

    I was calling
    contacts.find(['name'], findOptions, onFindSuccess, onFindError);

    When I should have been calling
    contacts.find(['name', 'emails'], findOptions, onFindSuccess, onFindError);

    Once I added in that I wanted the call to return emails also, I got the array.
  3. Anoop Nayak's Avatar
    CrackBerry Newbie

    Posts
    1 Posts
    #3  

    Default

    Quote Originally Posted by mhant View Post
    ok for anyone else who gets stuck with this issue, the problem wasn't with the config.xml at all it was in the js call.

    I was calling
    contacts.find(['name'], findOptions, onFindSuccess, onFindError);

    When I should have been calling
    contacts.find(['name', 'emails'], findOptions, onFindSuccess, onFindError);

    Once I added in that I wanted the call to return emails also, I got the array.

    I know this thread is a bit too old. But mhant are you getting all the contacts?

Similar Threads

  1. Can't send email unless person is in my contact list?
    By vdubguy2k in forum Storm OS Discussion
    Replies: 3
    Last Post: 05-10-2010, 01:20 PM
  2. Replies: 2
    Last Post: 02-15-2010, 04:17 PM
  3. Need Help! cant send email unless in my contacts
    By reme2299 in forum BlackBerry Storm2
    Replies: 4
    Last Post: 01-02-2010, 07:34 AM
  4. **NULL** in Contacts
    By waasoxfan in forum BlackBerry Curve 8350i
    Replies: 6
    Last Post: 01-29-2009, 03:10 PM
  5. How to set up a group for emailing in my contacts..
    By starbucksgirl65 in forum General BlackBerry Discussion
    Replies: 2
    Last Post: 08-05-2008, 05:33 PM

Posting Permissions