Weble / ZohoCrmApi

PHP SDK for Zoho CRM API v2
https://weble.github.io/ZohoCrmApi
5 stars 10 forks source link

Search and filtering (other than by ID) #102

Closed kovinet closed 4 months ago

kovinet commented 4 months ago

Is it possible to get a record by some field, like for example I would like to get Contact from ZOHO by Email or by Phone.

Now I get DuplicateData exception when trying to insert new Contact which already exists with same Email but it is not clear how can I check first and get ID of the contact so I can do an update.

Another option would be upsert method (create or update if existing), is something like this supported by this package?

Skullbock commented 4 months ago

Hi, we were implementing it in the next version, not sure when we'll have the time to finish that, but you can try it: https://github.com/Weble/ZohoCrmApi/pull/90/files

Basically try using the dev-feature/api-v4 as the version for the zoho crm dependency in you composer json and you'll get that version with the support for external ids.