Hello, According to the manual<http://code.google.com/googleapps/domain/shared_contacts/gdata_shared_contacts_api_reference.html#Creating>, when creating a Domain Shared Contact, if the email already exists, I should be getting a "409 conflict" error message.
But it seems that this does not always occur. After a complaint from a client, I downloaded his GAL only to find that there are contacts which are repeated more than 4 times!! Here is a sample XML from such a contact (domain and email have been modified). <entry> <id>http://www.google.com/m8/feeds/contacts/clientdomain.cl/base/65c924bc0e2fdb29</id> <updated>2011-04-21T15:32:35.965Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/> <title type='text'>Alejandra Smith</title> <link rel='http://schemas.google.com/contacts/2008/rel#edit-photo' type='image/*' href='https://www.google.com/m8/feeds/photos/media/clientdomain.cl/65c924bc0e2fdb29/1B2M2Y8AsgTpgAmY7PhCfg'/> <link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/65c924bc0e2fdb29'/> <link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/65c924bc0e2fdb29/1303399955965001'/> <gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]' primary='true'/> </entry> <entry> <id>http://www.google.com/m8/feeds/contacts/clientdomain.cl/base/68186ccf0e32d77f</id> <updated>2011-04-21T15:43:10.885Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/> <title type='text'>Alejandra Smith</title> <link rel='http://schemas.google.com/contacts/2008/rel#edit-photo' type='image/*' href='https://www.google.com/m8/feeds/photos/media/clientdomain.cl/68186ccf0e32d77f/1B2M2Y8AsgTpgAmY7PhCfg'/> <link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/68186ccf0e32d77f'/> <link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/68186ccf0e32d77f/1303400590885001'/> <gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]' primary='true'/> </entry> <entry> <id>http://www.google.com/m8/feeds/contacts/clientdomain.cl/base/6b7a52a08825cea9</id> <updated>2011-04-21T15:34:09.593Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/> <title type='text'>Alejandra Smith</title> <link rel='http://schemas.google.com/contacts/2008/rel#edit-photo' type='image/*' href='https://www.google.com/m8/feeds/photos/media/clientdomain.cl/6b7a52a08825cea9/1B2M2Y8AsgTpgAmY7PhCfg'/> <link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/6b7a52a08825cea9'/> <link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/6b7a52a08825cea9/1303400049593001'/> <gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]' primary='true'/> </entry> <entry> <id>http://www.google.com/m8/feeds/contacts/clientdomain.cl/base/7fc784038b4049ef</id> <updated>2011-04-21T15:29:29.815Z</updated> <category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact'/> <title type='text'>Alejandra Smith</title> <link rel='http://schemas.google.com/contacts/2008/rel#edit-photo' type='image/*' href='https://www.google.com/m8/feeds/photos/media/clientdomain.cl/7fc784038b4049ef/1B2M2Y8AsgTpgAmY7PhCfg'/> <link rel='self' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/7fc784038b4049ef'/> <link rel='edit' type='application/atom+xml' href='https://www.google.com/m8/feeds/contacts/clientdomain.cl/full/7fc784038b4049ef/1303399769815001'/> <gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]' primary='true'/> </entry> There is a process which runs every night which copies the contacts from a local source to the GAL. I was counting on the API to reject duplicates... Regards -- 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
