Search Contact Based On Extended Property

87 views
Skip to first unread message

FNIS INDIA

unread,
May 18, 2012, 3:47:31 AM5/18/12
to google-co...@googlegroups.com
I am using # as programming language for interacting with Google Contacts API. I am storing some numeric value in "ExtendedProperty" named "externalid". Can any one please help me with some code snippet to search contact based on Extended Property named "externalid" ?
 
For example, i created a contact with "Extended Property" named "externalid" with value "123456". I tried to search contact using below code snippet, but it didn't return me any result.
ContactsQuery query  =  new ContactsQuery (ContactQuery.CreateContactsUrl(myemail...@mydomain.com));
query.Query = "123456";
Feed<Contact> feed = cr.Get<Contact>(query);
 
In case we use code snippet below it works. Here "Tarun" is the name of my contact with "externalid" having value "12345".
ContactsQuery query  =  new ContactsQuery (ContactQuery.CreateContactsUrl(myemail...@mydomain.com));
query.Query = "Tarun";
Feed<Contact> feed = cr.Get<Contact>(query);
 
Can any one please help me in this?
 
 

FNIS INDIA

unread,
May 18, 2012, 3:52:21 AM5/18/12
to google-co...@googlegroups.com

On Friday, May 18, 2012 1:17:31 PM UTC+5:30, FNIS INDIA wrote:
I am using C# as programming language for interacting with Google Contacts API. I am storing some numeric value in "ExtendedProperty" named "externalid". Can any one please help me with some code snippet to search contact based on Extended Property named "externalid" ?
 
For example, i created a contact with "Extended Property" named "externalid" with value "123456". I tried to search contact using below code snippet, but it didn't return me any result.
ContactsQuery query  =  new ContactsQuery (ContactQuery.CreateContactsUrl(myemailaddres...@mydomain.com));
query.Query = "123456";
Feed<Contact> feed = cr.Get<Contact>(query);
 
In case we use code snippet below it works. Here "Tarun" is the name of my contact with "externalid" having value "12345".
ContactsQuery query  =  new ContactsQuery (ContactQuery.CreateContactsUrl(myemailaddres...@mydomain.com));
query.Query = "Tarun";
Feed<Contact> feed = cr.Get<Contact>(query);
Reply all
Reply to author
Forward
0 new messages