web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help me set this custo...
Power Automate
Unanswered

Help me set this custom connector please

(0) ShareShare
ReportReport
Posted on by 6,048 Super User 2024 Season 1

I am trying to set up custom connector for Zoho CRM that used oAuth 2. For some reason i can't get it to work because something related to refresh token and query parameters in custom connector. I am attaching a link to the community post where 2 people have done it by making 2 custom connector one for authentication and other for making API calls using the access token received from first connector. I can't wrap my head around it. 

 

https://powerusers.microsoft.com/t5/General-Power-Automate/OAuth-token-not-refreshing-Custom-Connectors-and-Generic-OAuth-2/m-p/469842

 

I can do it in Postman. I can get the refresh token manually. But, how to create a custom connector that will fetch the access token based on that refresh token?

 

Just in case i am attaching the documentation link of the API that i am trying to create custom connector for:

https://www.zoho.com/crm/developer/docs/api/v2/oauth-overview.html

 

Any help appreciated

 

Thanks

 

 

Categories:
I have the same question (0)
  • BenBlum Profile Picture
    15 on at

    Hello - 
    First step is to get your custom auth connector working then you can use that to "feed" the access token to your custom connector that  will interact with the Zoho CRM api.

    The custom auth connector just has one get action to retrieve the token .

    Here is the swagger def you should be able to past this into your connector using the swagger editor option and then just change the values related to your api login. Once you have that wokring and you can test it and get an access key back you would just add this as an initial step in your flow, store the value in a variable and pass it to your other custom connector for all subsequent api calls.

    swagger: '2.0'
    info: {title: Zoho Auth, description: '', version: '1.0'}
    host: accounts.zoho.com
    basePath: /oauth/v2/
    schemes: [https]
    consumes: []
    produces: []
    paths:
     /token:
     post:
     responses:
     default:
     description: default
     schema:
     type: object
     properties:
     access_token: {type: string, description: access_token}
     api_domain: {type: string, description: api_domain}
     token_type: {type: string, description: token_type}
     expires_in: {type: integer, format: int32, description: expires_in}
     summary: Get Access Token
     operationId: GetAccessToken
     parameters:
     - {name: refresh_token, in: query, required: true, type: string, default: 1000.dsfsdfsfdsfdsdfsf.}
     - {name: client_id, in: query, required: true, type: string, default: 1000.sfsdfgg45g524wrevgr}
     - {name: client_secret, in: query, required: true, type: string, default: 234trewfggfverwg25gg4bhsa}
     - {name: redirect_uri, in: query, required: false, type: string}
     - {name: grant_type, in: query, required: true, type: string, default: refresh_token}
    definitions: {}
    parameters: {}
    responses: {}
    securityDefinitions: {}
    security: []
    tags: []



    It

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Thank you for the reply. I was able to make connector from your post. It is successfully getting access token. The problem is when i want to use that access token in the different connector that makes the api calls. But, header is not overriding. 

    q3.jpgq2.jpgq1.jpg

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard