Hi.
 I have created a custom field using the below code.

try{
                          UserDefinedField locCustom = new 
UserDefinedField("field name",
location);
                          entryToUpdate.getUserDefinedFields().add(locCustom);
                          response = 
updateGoogleAppsContactObject(entryToUpdate);
                }catch(Exception exception){
                        System.out.println("Exception occured while updating 
location:
"+exception.getMessage() );
                        exception.printStackTrace();
                }
On Jan 5, 10:02 pm, Alain Vongsouvanh <[email protected]> wrote:
> Hello,
>
> There is no such location element in a Contact entry. The list of supported
> elements can be found in those 2 reference guides (combined):
>   * Contact 
> kind:http://code.google.com/apis/gdata/docs/2.0/elements.html#gdContactKind
>   * Contacts 
> namespace:http://code.google.com/apis/contacts/docs/3.0/reference.html#gContact...
>
> What would you need to store in such an element? I would recommend using
> the structuredPostalAddress element instead.
>
> Best,
> Alain
>
> On Wed, Jan 4, 2012 at 11:46 PM, Bipin Patil <[email protected]>wrote:
>
>
>
>
>
>
>
>
>
> > Hi All.
> >  I have one query regarding the Updating attribute "Location"
> > As I searched the API documentation ,i have found the following 
> > class"*com.google.api.gbase.client.Location"
> > .*My query is regarding update of the attribute location.As i have
> > updated the other attributes like Work phone,mobile number ,fax number
> > ,postal address etc.I found that there are attributes which these field
> > accept are username and also we use Rel here.So i need help regarding how
> > to update the Location attribute  Using java.*
>
> > *Thanks and Regards
> > Bipin Patil*
> > *
>
> > --
> > 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
> > [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://code.google.com/apis/contacts/community/forum.html
>
> --
> Alain Vongsouvanh | Developer Programs Engineer

-- 
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
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to