Forum Academy Marketplace Showcase Pricing Features

Zoho CRM OAuth setup [finally! 😓 ]

I finally figured it out how to make this darn thing work.

I will probably post it as a plug-in at some point so that we can iterate on this together.

A screenshot:

The same in text format for the copy-pasta warriors out there :spaghetti: .

  • Authentication: OAuth2 User-Agent Flow
  • App ID + App Secret: Zoho API how to register your client.
  • Scope: [whatever you need, link], for all of them: ZohoCRM.users.ALL,ZohoCRM.modules.ALL,ZohoCRM.settings.ALL
  • Authentication goes in header: :white_check_mark: checked
  • Token is returned as querystring: :x:
  • Requesting an access token uses Basic Auth: :x:
  • Add access_type=offline (Google APIs): :x:
  • Use a generic redirect URL (https://[your app]/api/1.1/oauth_redirect): :white_check_mark:
  • Login dialog redirect: https://accounts.zoho.com/oauth/v2/auth
  • Access token endpoint: https://accounts.zoho.com/oauth/v2/token
  • User profile endpoint: https://www.zohoapis.com/crm/v2/users
  • User ID key path: users
  • User email key path: email
6 Likes

I would suggest that this is going to give you issues at some point.

What you are telling Bubble in this field is the “unique id” of the user that has just signed up.

So what you are telling Bubble with your set up as that the WHOLE of the JSON returned is the unique id. But if they change their first name … that may not be the same.

So Bubble fields Users … and uses that as you told it …

image

email works better … because it is the name of the email field …

image

Might be worth changing User Id Key Path to “id” instead ?

3 Likes

So that’s how the darn thing works! Thanks for the lesson.

[update] I’ve changed it and it does not work. The first time I did it worked, but it seemed that it was still using users and not id.

I think it doesn’t work due to the fact that the response is an array. I’ve tried via the plugin builder and I can capture a response:

I can see that the email is of another admin in our system, not mine. Is there a way to tell Bubble to look into the users array, into the xx item, and get that id?

What a gem! been trying to figure this thing out!!! lol, Should have started searching in this forum. Post is a little old, but just a newbie question, what type of Client did you configure/used in Zoho? Server Based Application?

Yes, i think, its a Sever Based Application.