01-30-2014 03:02 PM
is it possible?
just shows how to open the new card.
Can you do something with:
InvokeRequest cardRequest; cardRequest.setTarget("sys.pim.contacts.card.compo
ser"); cardRequest.setAction("bb.action.CREATE"); cardRequest.setMimeType("application/contact"); cardRequest.setData(SOMETHING HERE?);
to fill in some of the fields?
01-30-2014 03:12 PM
I would try to follow the same steps described for prepopulating an Email card as described here:
Or a Calendar event as described here:
01-30-2014 03:14 PM
01-30-2014 03:52 PM
the setData should have the contact ID of the contact you want to show info about, from what I've looked at it seems as though it should populate all the info for that contact.
I took a look and I think passing this data might do the trick, no garuntees though.
If that doesn't' work check the ContactService Page, the URI page states that it it wants
Contact ID integer( for more information, see ContactService)
01-30-2014 03:54 PM
Thanks, but I'm looking to invoke a New contact card with prepopulated fields that come from strings that come from the invoking application. Not an exisiting contact.
01-30-2014 03:59 PM
Hello again stardomains,
I haven't tried it myself! But, here is a suggestion for you to try:
The Calendar creation card is sort of linked to the properties of the CalendarEvent API. By analogy, I would assume that the Contact creation card would similarly be linked to the properties of the ContactBuilder API.
Try it and let me know how it goes!
01-30-2014 04:01 PM - edited 01-30-2014 04:02 PM
the best option to do that im seeing would be adding a new contact
it looks like the data you can add is restricted to either e-mail, phone or pin. whichever MIME type you choose the data should be a string with either a e-mail, phone number or pin.
I dont know if it will let you send all 3 types at once, I don't belive it will. other than those 3 things, the only thing I can see that can be set directly from the invoking app is the picture