Init Variable Contact Info does partial search not exact
Posted: 18 Jun 2017 18:21
The new Init Variable Contact Info action does a partial search of a name, not an exact match.
When I do a search for "Emily", it finds and returns "Emily" and "Emily W"
To reproduce this error, create contact names "Emily" and "Emily W" in Google Contacts. Then run the Init Variable Contact Info action with search type NAME and search value "Emily" without the double quotes.
In a script, put these lines:
============================
contact_var=toJSON(contact_info);
contactdata_var=fromJSON(contact_var);
============================
contactdata_var contains only the last search result "Emily W".
Is this by design or is it a bug ?? Does Init Variable Contact Info do a partial match or an exact match ??
If it is by design, then contactdata_var should be a map or list, and it should have both "Emily" and "Emily W". But, I only see "Emily W". Is my script right? If it is a map/list, then I have to do an extra processing to extract "Emily" only?
If it is a bug, then I would expect an exact match and the only result "Emily". I prefer that it does an exact match. Or have the option for exact or partial.
When I do a search for "Emily", it finds and returns "Emily" and "Emily W"
To reproduce this error, create contact names "Emily" and "Emily W" in Google Contacts. Then run the Init Variable Contact Info action with search type NAME and search value "Emily" without the double quotes.
In a script, put these lines:
============================
contact_var=toJSON(contact_info);
contactdata_var=fromJSON(contact_var);
============================
contactdata_var contains only the last search result "Emily W".
Is this by design or is it a bug ?? Does Init Variable Contact Info do a partial match or an exact match ??
If it is by design, then contactdata_var should be a map or list, and it should have both "Emily" and "Emily W". But, I only see "Emily W". Is my script right? If it is a map/list, then I have to do an extra processing to extract "Emily" only?
If it is a bug, then I would expect an exact match and the only result "Emily". I prefer that it does an exact match. Or have the option for exact or partial.