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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating a Xero Oauth2...
Power Automate
Answered

Creating a Xero Oauth2.0 Custom Connector

(0) ShareShare
ReportReport
Posted on by 2,324 Moderator

I am new to creating custom connectors and need some help creating a connector for Xero. I was able to connect using Postman but can't seem to get the settings correct on the Power Platform Custom Connector.

 

Can someone tell me what the parameters should be for the Security tab. No matter what I try will not connect to Xero.

365Assist_0-1661479751787.png

 

When I try to Test the connection get error 500

365Assist_0-1661480813396.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    365-Assist Profile Picture
    2,324 Moderator on at

    Figured it out. I needed to copy the Redirect URL from the Custom Connector to my XERO Redirect URL

     

    365Assist_0-1661481295163.png

     

  • Robinpemberton1 Profile Picture
    2 on at

    Did you use the offline scope? How did you get on with token refresh?

  • 365-Assist Profile Picture
    2,324 Moderator on at

    No I did not use the offline scope. I just added the Token url in the refresh Token and it seems to keep refreshing.

  • RobinPemberton Profile Picture
    2 on at

    I could not keep the connection alive without the out the offline access scope. This is using the standard authorization flow. Just not sure what will happen after the 60 days. Think I will post this as another thread incase someone else has had this issue. Thanks for the reply btw.

     

  • s1hl3_ukuvuma Profile Picture
    59 on at

    Can you please show me the set-up of your token URL?

  • 365-Assist Profile Picture
    2,324 Moderator on at

    @s1hl3_ukuvuma 

    365Assist_0-1678918281330.png

     

  • AndrewH Profile Picture
    10 on at

    How did you go with this? I am attempting the same, however it get the same error above that you did, I had entered the correct urls and have it setup exactly as you do. In power automate, when I view/edit the custom connector its missing the refresh URL each time - somethings still not right, and I must say, the docs at developer.xero.com are rather lacking, or hard to search through

  • 365-Assist Profile Picture
    2,324 Moderator on at

    As per my solution I was able to resolve my issue.

     

    Yes the Refresh URL blanks every time you go back to edit. However I just use the Token URL as Refresh and all works.

  • AndrewH Profile Picture
    10 on at

    Thank you - I was concerned there was some bug causing it to not work, and that was it.

    I'm still having issues, I get a 401 unauthorized error from Xero and have it setup the same as you do - perhaps something isnt right in Xero 😞 I will keep persisting.

  • s1hl3_ukuvuma Profile Picture
    59 on at

    Hi everyone, 

     

    I have used Power Automate and the HTTP action instead of the custom connector, please let me know if you are interested in that solution.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard