Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

API Integration Using OAuth 2.0

(1) ShareShare
ReportReport
Posted on by 385
We are using the latest BC 365 SaaS version. Previously when using on-prem I was able to write some C# console apps to connect to the BC 365 OData endpoints I exposed. Using Windows authentication. These were fairly automated, which was the intent, since they were automated integration apps I was working on.
 
Now that we are using BC 365 SaaS I need to access some of these OData endpoints. I can obviously succeed by going /the long way./ I have my Azure app registration in place, can go through the OAuth2 process to get the access token to use in Postman, etc. That's all fine and dandy.
 
What I'm wondering is if there is some existing NuGet or GitHub project that wraps most of these steps so I can use them in an automated C# console app. Or if there is some mechanism in BC 365 SaaS I can use to register my Azure app registration in order to gain a longer-lived access token. Any suggestions?
  • Greg Kujawa Profile Picture
    385 on at
    API Integration Using OAuth 2.0
  • Verified answer
    Mohana Yadav Profile Picture
    60,238 Super User 2025 Season 1 on at

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans