Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Running CLI commands using X++ environment?

(0) ShareShare
ReportReport
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
    232,871 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
    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
    232,871 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

🌸 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,127 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans