Skip to main content

Notifications

Community site session details

Community site session details

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

Authenticate external scripts running on local VMs

(1) ShareShare
ReportReport
Posted on by 83
Hello,
 
We are trying to automate tu update of some information from our operational back end to Business Central.
 
We have about 10k moving assets that are continuously rented and occasionally in maintenance. The management of the clients, the rentals and network connectivity of the assets, all happen outside of Business Central through a dedicated backend. But we still have those assets in BC as that's where the maintenance happen, on top of financial reasons.
 
We're looking to write a script that periodically checks the backend to update the assets in Business Central. Script would run a few times a day, we're not looking to replicate the backend and have real time information about everything.
 
Anyway, we're struggling to get the Python script to be authenticated on Business Central to be able to call the necessary APIs. The workaround found was to simulate a real user on a browser, but that has a lot of pitfalls and I'm sure there is a more straighforward way that we're missing. I know Power Automate could be an option where you call a flow but before investing time in exploring that, I would love to understand all options available to meet our need.
 
Is there documentation or any help I can find on how to implement this ?
 
Thank you.
  • Fares Profile Picture
    83 on at
    Authenticate external scripts running on local VMs
    Hi Yun Zhu,
     
    Thank you for the links. We had no trouble authenticating through Postman and we know that Power Automate would be able to help.
     
    The questions is whether it is possible to write Python script that can authenticate without needing Power Automate.
     
    Thank you,
    Fares
  • Suggested answer
    YUN ZHU Profile Picture
    84,621 Super User 2025 Season 1 on at
    Authenticate external scripts running on local VMs
    It seems that you have an authentication problem. I hope the following information can give you some hints.
    Using OAuth to connect Business Central APIs and Web Service in Postman
    Using OAuth 2.0 to connect Business Central APIs and Web Services in Power Automate – OAuth in HTTP action
     
    Thanks
    ZHU

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