web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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. 

I have the same question (0)
  • Martin Dráb Profile Picture
    237,882 Most Valuable Professional on at

    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).

  • mayasol Profile Picture
    15 on at

    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
    237,882 Most Valuable Professional on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans