Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Running CLI commands using X++ environment?

Posted on by 15

Is there any module available in X++ that runs the CLI commands? For example, `subprocess` module in python does lets you run the CLI commands in addition also has features to log the output in a separate text file. 

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Running CLI commands using X++ environment?

    Hmm, you mentioned both Dynamics AX and Dynamics 365. Dynamics AX existed before Dynamics 365 was introduced; the last version was AX 2012. Naming in Dynamics 365 is a bit chaotic, but people usually call the successor of AX "Dynamics 365 for Finance and Operations".

    Hopefully this will help you with finding out which product you're using.

  • mayasol Profile Picture
    mayasol 15 on at
    RE: Running CLI commands using X++ environment?

    Hi goshoom , Thank you for your reply. I'm still waiting on the AX version from my client, so I really I don't have an answer for you at the moment. I will definitely get back to this post when I have answer and share more information here. Please take into consideration that D365 is a very new thing for me and feel free to remove this question.  I'll be more specific from next time onwards.

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: Running CLI commands using X++ environment?

    Not only that you didn't reply in your previous thread, but here you again forgot to mention your version of AX. Please add this information to both threads.

    If you mean Common Language Infrastrucure, then yes, using .NET libraries from X++ is possible. Details depend on what you want to do and on your version of AX (so it's really important to share it with us).

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

Product updates

Dynamics 365 release plans