Solved Zoho CRM failed refresh token

Status
Not open for further replies.

mat.rox

Customer
Joined
May 23, 2022
Messages
6
Reaction score
5
Hi, when we try to refresh token from 3CX and authorize Zoho CRM doesn't work and we have this message:

Error occured while accessing CRM. Please check log provided.
Started OAuthGetAccessToken
Request text: https://accounts.zoho.eu/oauth/v2/token
Request form value code set to xxx
Request form value grant_type set to authorization_code
Request form value client_id set to xxx
Request form value client_secret set to xxx
Request form value scope set to ZohoCRM.modules.accounts.READ,ZohoCRM.modules.leads.READ,ZohoCRM.modules.contacts.READ,ZohoCRM.modules.contacts.CREATE,ZohoCRM.modules.calls.CREATE,ZohoCRM.modules.tasks.CREATE,ZohoCRM.users.READ
Request form value redirect_uri set to https://iviaggidellimperatore.my3cx.it:5001/api/oauth2crm
Request form value state set to xxx
Response text: {"access_token":"xxx","refresh_token":"xxx","scope":"ZohoCRM.modules.tasks.CREATE ZohoCRM.modules.accounts.READ ZohoCRM.modules.contacts.READ ZohoCRM.modules.contacts.CREATE ZohoCRM.modules.calls.CREATE ZohoCRM.users.READ ZohoCRM.modules.leads.READ ZohoCRM.modules.leads.CREATE","api_domain":"https://www.zohoapis.eu","token_type":"Bearer","expires_in":3600}
Response finished
Variable Result set to
Finished OAuthGetAccessToken
System.Exception: CRM call result is empty or null
at ManagementConsoleJS.Controllers.OAuth2CrmController.OAuth(String state, CrmProcessorFactoryDelegate crmProcessorFactory, IMemoryCache cache)

Thanks for your support.
 
Last edited:
Can you please clarify which account are you selecting when you authorize to Zoho?
 
Have you tried deleting the template then redownloading it in the little section above the CRM settings?

To be it looks perfectly fine.

Btw: remove the access and refresh token as well as client ID and secret from the post. (I'd remove the FQDN too.)
 
When you press the authorization in the PBX you are redirected to select which account you will use to authenticate, which account you are selecting there, the developer or the company account?
 
Have you tried deleting the template then redownloading it in the little section above the CRM settings?

To be it looks perfectly fine.

Btw: remove the access and refresh token as well as client ID and secret from the post. (I'd remove the FQDN too.)
Thanks for advise! Before today the template works perfectly, we tried to change something in the Zoho original template but after issues (not refresh token successful) we restore a last week 3CX buckup and add a new secret ID and Client ID. Thanks
 
When you press the authorization in the PBX you are redirected to select which account you will use to authenticate, which account you are selecting there, the developer or the company account?
The company account we have only that account.
 
  • Like
Reactions: TheodorosG_3CX
I delete the Zoho CRM template and install again and now it works. Thank to all
 
Status
Not open for further replies.