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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Using COM to Open a Form from an Application

(0) ShareShare
ReportReport
Posted on by 50

Hi All,

I want from a .NET program open the AX Client with a certain form, customer form or open the form to create a sales order for this particular customer. The Customer number is known in the .NET program this variable is being defined.

I am not really familiar with .NET but I did succeed to open a form for instance the CustTable form, but as you guess at the top of the Grid.

In .NET it looks like this - see below, in the OpenMenuItem I can not put the Customer number there isn't a exporting parameter.

Question is this solvable ? Which way to go ?

private void button1_Click(object sender, EventArgs e)
{
       AxClientLib.DynamicsAxApplication axComClient = new AxClientLib.DynamicsAxApplication() ;


      try
     {
          //find running Ax32.exe
         axComClient.OpenMenuItem("100", "CustTable", AxClientLib.AxMenuType.DisplayMenu);

    }
   catch
   {
        MessageBox.Show("failed");
   }

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can utilize AX startup commands. Basically you can develop x++ code to support running any commands when the client starts.

    docs.microsoft.com/.../execute-startup-commands

  • csteenbe Profile Picture
    50 on at

    Thanks, only question mark is. Will the client always be started again, think so ?

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Yes, startup commands will only work when the client is started.

    If you need to send commands to AX client that is already open, you can use Named pipes: www.axug.com/.../viewthread

  • csteenbe Profile Picture
    50 on at

    Thanks, trick is just how to open the customer form with the customer number as out/incoming parameter.

  • csteenbe Profile Picture
    50 on at

    i think this is not suitable for our version of ax, AX2009.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 649

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 447 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 242 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans