Zoho Custom Module and 3CX XML Search Edit

Status
Not open for further replies.

Dalezac

Customer
Joined
Mar 31, 2017
Messages
1
Reaction score
0
Hello
I have recently successfully integrated 3CX with Zoho CRM and am asking if anyone has successfully modified the 3CX XML file to search across custom modules.
The default XML file searches across the default ZOHO modules but does not appear to look at any Zoho custom modules.

If anyone has modified the 3CX XML file can you please share how and what is required to edit the XML to search across the custom created module/s.
 
I have the same problem, when I add another module to the scope I get the "ERROR_invalid_scope" message.
 
I have the same problem, when I add another module to the scope I get the "ERROR_invalid_scope" message.
You should probably add the requiered scopes to the Authorization procedure. 3CX uses OAuth2, and when you authorize it, you specify which resources you will be accessing. The scopes used by 3CX are defined inside the XML template, and are the following:
ZohoCRM.modules.accounts.all,ZohoCRM.modules.leads.all,ZohoCRM.modules.contacts.all,ZohoCRM.modules.calls.all,ZohoCRM.users.all
 
You should probably add the requiered scopes to the Authorization procedure. 3CX uses OAuth2, and when you authorize it, you specify which resources you will be accessing. The scopes used by 3CX are defined inside the XML template, and are the following:
ZohoCRM.modules.accounts.all,ZohoCRM.modules.leads.all,ZohoCRM.modules.contacts.all,ZohoCRM.modules.calls.all,ZohoCRM.users.all
On the XML template there are 2 places where you can add scope:

<Parameter Name="RefreshToken" Type="OAuth" Parent="General Configuration" Editor="String" Title="Refresh Token:" RequestUrl="[AccountsServer]/oauth/v2/auth" RequestUrlParameters="response_type=code&amp;prompt=consent&amp;access_type=offline&amp;client_id=[ClientId]&amp;scope=ZohoCRM.modules.accounts.all,ZohoCRM.modules.leads.all,ZohoCRM.modules.contacts.all,ZohoCRM.modules.calls.all,ZohoCRM.users.all&amp;redirect_uri=[RedirectUri]&amp;state=[State]" ResponseScenario="OAuthGetAccessToken" />

<Value Key="scope" Passes="0" Type="String">ZohoCRM.modules.accounts.all,ZohoCRM.modules.leads.all,ZohoCRM.modules.contacts.all,ZohoCRM.modules.calls.all</Value>

When I add another module I get the "ERROR_invalid_scope" message when I go to Authorise.
 
The scope needs to be added in both places.

If you get that invalid scope error, probably the scope ID is something different than what you're specifying... You should check this with Zoho support.
 
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,842
Messages
589,320
Members
164,677
Latest member
skander