- Joined
- Nov 28, 2020
- Messages
- 3
- Reaction score
- 0
Hello. Followed this integration guide https://www.3cx.com/docs/pbx-crm-integration-zoho/
and it's not working in my case.
entering the number that I created in a test contact an here's the output:
Started scenario with empty id
Started Auth
Request text: https://accounts.zoho.com/oauth/v2/token
Request form value refresh_token set to 1000.bcbd8dfd3f7d7ff4c0c70cd4a76a4616.34ed6d72d2ccf74caca079864cf618fa
Request form value grant_type set to refresh_token
Request form value client_id set to 1000.R9S2WIYK2JEM98JIWF6JOSECOIQTLE
Request form value client_secret set to 74ca68f1aabb0dfb58d4d4fae929b0cb0680639757
Response text: {"access_token":"1000.c93a9a3145e01b9b1e916ae4b7268e78.cc0c8eb9590333dc37fdfea895b3c344","api_domain":"https://www.zohoapis.com","token_type":"Bearer","expires_in":3600}
Response finished
Variable AccessToken set to 1000.c93a9a3145e01b9b1e916ae4b7268e78.cc0c8eb9590333dc37fdfea895b3c344
Variable ApiDomain set to https://www.zohoapis.com
Finished Auth
Request text: https://www.zohoapis.com/crm/v2/Contacts/search?criteria=((Phone:equals:111) or (Mobile:equals:111) or (Home_Phone:equals:111) or (Other_Phone:equals:111) or (Fax:equals:111))&fields=Account_Name,id,First_Name,Last_Name,Phone,Mobile,Home_Phone,Asst_Phone,Other_Phone,Email,Fax
System.Exception: Server returned a non successful status code - HTTPStatusCode=BadRequest - Reason= - Content={"code":"INVALID_QUERY","details":{"reason":"the field is not available for search","api_name":"Home_Phone"},"message":"invalid query formed","status":"error"}
at CrmIntegration.ScenarioProcessorBase.ProcessRequest(ScenarioRequest request, IValueManager customManager, HttpClient client, CancellationToken token)
at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
at CrmIntegration.ScenarioProcessorBase.Execute(ProtocolScenario scenario, CancellationToken token)
at CrmIntegration.CrmProcessor.GetContactInfoFromCrm(String contactNumber, String destinationEmail, Boolean createIfNotFound, CancellationToken token)
Please help. Need to integrate our 3CX with zoho to make calls from crm
and it's not working in my case.
entering the number that I created in a test contact an here's the output:
Started scenario with empty id
Started Auth
Request text: https://accounts.zoho.com/oauth/v2/token
Request form value refresh_token set to 1000.bcbd8dfd3f7d7ff4c0c70cd4a76a4616.34ed6d72d2ccf74caca079864cf618fa
Request form value grant_type set to refresh_token
Request form value client_id set to 1000.R9S2WIYK2JEM98JIWF6JOSECOIQTLE
Request form value client_secret set to 74ca68f1aabb0dfb58d4d4fae929b0cb0680639757
Response text: {"access_token":"1000.c93a9a3145e01b9b1e916ae4b7268e78.cc0c8eb9590333dc37fdfea895b3c344","api_domain":"https://www.zohoapis.com","token_type":"Bearer","expires_in":3600}
Response finished
Variable AccessToken set to 1000.c93a9a3145e01b9b1e916ae4b7268e78.cc0c8eb9590333dc37fdfea895b3c344
Variable ApiDomain set to https://www.zohoapis.com
Finished Auth
Request text: https://www.zohoapis.com/crm/v2/Contacts/search?criteria=((Phone:equals:111) or (Mobile:equals:111) or (Home_Phone:equals:111) or (Other_Phone:equals:111) or (Fax:equals:111))&fields=Account_Name,id,First_Name,Last_Name,Phone,Mobile,Home_Phone,Asst_Phone,Other_Phone,Email,Fax
System.Exception: Server returned a non successful status code - HTTPStatusCode=BadRequest - Reason= - Content={"code":"INVALID_QUERY","details":{"reason":"the field is not available for search","api_name":"Home_Phone"},"message":"invalid query formed","status":"error"}
at CrmIntegration.ScenarioProcessorBase.ProcessRequest(ScenarioRequest request, IValueManager customManager, HttpClient client, CancellationToken token)
at CrmIntegration.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, CancellationToken token)
at CrmIntegration.ScenarioProcessorBase.Execute(ProtocolScenario scenario, CancellationToken token)
at CrmIntegration.CrmProcessor.GetContactInfoFromCrm(String contactNumber, String destinationEmail, Boolean createIfNotFound, CancellationToken token)
Please help. Need to integrate our 3CX with zoho to make calls from crm