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,327 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:
  • Verified answer
    365-Assist Profile Picture
    2,327 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,327 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,327 Moderator on at
  • 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,327 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard