Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Importing local file using XMLPort into business central in the cloud

(0) ShareShare
ReportReport
Posted on by 40

Before the switch to business central (non-onpremise) in the cloud, dynamics was installed locally alongside a Python script.

The python script is responsible for several integrations with other services.

This workflow allowed to call codeunits from said python script that were able to do stuff on the local disk (mainly run XmlPorts).

Now the switch to the cloud happened and the local xml files have to be imported manually through a page extension,

which is tedious and labor intensive compared with the old, fully automated solution.

I read about several relevant things in the docs:

  • SOAP webservices seem to have a clear integration with Visual Studio + C# but not postman/python. There is no postman example for calling a specific codeunit-procedure?
  • OData does not work with Codeunits at all. An empty page is the solution?
  • Connect Apps are intended for standard things in predefined APIs and don't allow me to execute custom AL code on the dynamics365 side?

What is the intended tool for importing an only locally available xml-file using an XmlPort, triggered from the Python/Postman/script side?

  • Telcrome Profile Picture
    40 on at
    RE: Importing local file using XMLPort into business central in the cloud

    So its just not possible to reuse the software written for Dynamics NAV?

    Is the intended way to use XMLPorts by clicking on files with the mouse?

  • Suggested answer
    THE Italian Profile Picture
    on at
    RE: Importing local file using XMLPort into business central in the cloud

    This is a good blog about XML Port vs SaaS

    robertostefanettinavblog.com/.../

    If you need to automate this, I would better suggest you to go for APIs.

    Maybe this blog could be helpful

    www.kauffmann.nl/.../

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,009 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans