Skip to main content

Notifications

Announcements

No record found.

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

Importing local file using XMLPort into business central in the cloud

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
    Telcrome 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
    THE Italian 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans