Adding a custom field to Google Apps Contacts

5,379 views
Skip to first unread message

Marco Kotrotsos

unread,
May 18, 2011, 8:41:13 AM5/18/11
to google-co...@googlegroups.com
Goodafternoon- I am very sorry if this has been asked before in any other form, but I can't seem to figure it out. 

Is it possible to add a custom field to a contact- have it show up on all contacts in Google Apps? With that I mean on the Contacts page itself. 

And what is the easiest way to do this? (if at all possible) 
I see 10 different way's and I am abit lost.

Thank you very much
Kind regards,
Marco

Alain

unread,
May 18, 2011, 11:49:52 AM5/18/11
to google-co...@googlegroups.com
Hello Marco,

You can use the gContact:userDefinedField to store custom key-value pairs. If you are using one of the GData client libraries, you should be able to find available getters and setters for this attribute.

Best,
Alain

Marco Kotrotsos

unread,
May 18, 2011, 2:01:15 PM5/18/11
to google-co...@googlegroups.com
Alain, thanks- would these fields then be visible when viewing the contact through the normal Contacts pages? Or only available through gData?

Satish Bellapu

unread,
May 18, 2011, 2:12:09 PM5/18/11
to google-co...@googlegroups.com
Hello Marco,
You can see the gContact:userDefinedField  in a normal contacts page and also you can get it with gData API's also.

Regards,
Satish Bellapu


On Wed, May 18, 2011 at 11:31 PM, Marco Kotrotsos <mai...@gmail.com> wrote:
Alain, thanks- would these fields then be visible when viewing the contact through the normal Contacts pages? Or only available through gData?

--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
google-co...@googlegroups.com
To unsubscribe from this group, send email to
google-contacts...@googlegroups.com
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Marco Kotrotsos

unread,
May 18, 2011, 2:17:31 PM5/18/11
to google-co...@googlegroups.com
That sounds great- that it's possible- Any change you can point me in the direction of a relevant code example. Not trying to take the lazy road here-  but I am having a hard time finding a good starting point with this.

Thanks

Satish Bellapu

unread,
May 18, 2011, 2:29:08 PM5/18/11
to google-co...@googlegroups.com
Here we go with a code snippet,

<atom:entry xmlns:atom='http://www.w3.org/2005/Atom
<atom:category scheme='http://schemas.google.com/g/2005#kind
<gContact:userDefinedField key='CustomKey1' value='CustomValue1'/>
</atom:entry>

For more reference's please check in the below link,

Regards,
Satish bellapu

On Wed, May 18, 2011 at 11:47 PM, Marco Kotrotsos <mai...@gmail.com> wrote:
That sounds great- that it's possible- Any change you can point me in the direction of a relevant code example. Not trying to take the lazy road here-  but I am having a hard time finding a good starting point with this.

Thanks

--

Marco Kotrotsos

unread,
May 18, 2011, 2:58:33 PM5/18/11
to google-co...@googlegroups.com
Great- thanks, you have been most helpful!
 

Satish Bellapu

unread,
May 18, 2011, 3:22:56 PM5/18/11
to google-co...@googlegroups.com
Pleasure mine, hope information helps you.



---- Help- is a help which helps in return.

-- 
Regards,
Satish Bellapu

On Thu, May 19, 2011 at 12:28 AM, Marco Kotrotsos <mai...@gmail.com> wrote:
Great- thanks, you have been most helpful!
 

--
Reply all
Reply to author
Forward
0 new messages