Hello, Please make sure that you do update the groupMembershipInfo's href attribute when you copy a contact from a user to another one as groups belong to users too. For example, suppose you have "user1" and "user2" and you want to copy a contact from the first user to the second one.
Both users have a group name "My Group", but for each user, the group's atom Id is different: - user1's My Group: http://www.google.com/m8/feeds/groups/* [email protected]*/base/*user1MyGroupId* - user2's My Group: http://www.google.com/m8/feeds/groups/* [email protected]*/base/*user2MyGroupId* You need to make sure that you update every groupMembershipInfo in the contact to reflect the user2's groups Atom Id otherwise, the group won't be found and the API will ignore these elements. Best, Alain On Wed, Aug 10, 2011 at 2:38 PM, fabouru <[email protected]> wrote: > We are using the contacts API (protocol), to add contacts directly > into a group, the function is working perfect > when I take one contact from one user of the domain fabo.tigabytes.cl > (test domain) and copy into other user from > beta.tigabytes.com (another test domain). But something strange happen > when I take the same contact from the same user of fabo.tigabytes.cl > and I try to copy into a group of another user in the same domain > (fabo.tigabytes.com)... Is copied into "Other > Contacts" (beta.tigabytes.cl) > > This did not work the contact should be copied into a definded group > but instead is copied into "Other Contacts" group > <feed > xmlns="http://www.w3.org/2005/Atom" > xmlns:batch="http://schemas.google.com/gdata/batch" > xmlns:gContact="http://schemas.google.com/contact/2008" > xmlns:gd="http://schemas.google.com/g/2005"> > > <category xmlns="" xmlns:scheme="http://schemas.google.com/g/ > 2005#kind" xmlns:term="http://schemas.google.com/g/2008#contact" /> > > <entry> > <title>Diego Novoa - PE</title> > <gd:name> > <gd:fullName>Diego Novoa - PE</gd:fullName> > <gd:givenName>Diego</gd:givenName> > <gd:familyName>Novoa - PE</gd:familyName> > </gd:name> > <gd:email rel="http://schemas.google.com/g/2005#other" > address="[email protected]" primary="true" /> > <gd:extendedProperty name="dueño" value="[email protected]" / > > > <gContact:groupMembershipInfo deleted="false" href="http:// > > www.google.com/m8/feeds/groups/fabrizzio%40fabo.tigabytes.cl/base/1b52a5a0fca48ac > " > /> > <batch:id>0</batch:id> > <batch:operation type="insert" /> > </entry> > > This works perfect (the contact is from a user of fabo.tigabytes.cl) > and is copied into a defined group > > <feed > xmlns="http://www.w3.org/2005/Atom" > xmlns:batch="http://schemas.google.com/gdata/batch" > xmlns:gContact="http://schemas.google.com/contact/2008" > xmlns:gd="http://schemas.google.com/g/2005"> > > <category xmlns="" xmlns:scheme="http://schemas.google.com/g/ > 2005#kind" xmlns:term="http://schemas.google.com/g/2008#contact" /> > <entry> > <title>Diego Novoa - PE</title> > <gd:name> > <gd:fullName>Diego Novoa - PE</gd:fullName> > <gd:givenName>Diego</gd:givenName> > <gd:familyName>Novoa - PE</gd:familyName> > </gd:name> > <gd:email rel="http://schemas.google.com/g/2005#other" > address="[email protected]" primary="true" /> > <gd:extendedProperty name="dueño" value="[email protected]" / > > > <gContact:groupMembershipInfo deleted="false" href="http:// > > www.google.com/m8/feeds/groups/tgadmin%40beta.tigabytes.com/base/4ee0aa600a13c888 > " > /> > <batch:id>0</batch:id> > <batch:operation type="insert" /> > </entry> > > Please someone help me in this subject > > -- > 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 -- 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
