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 :
Microsoft Dynamics AX (Archived)

DirParty Table Record through AIF

(0) ShareShare
ReportReport
Posted on by

Hello,

With the use of AIF and Dynamics AX 2012, I have been able to successfully create customers in Dynamics AX from C# code.

I've been instantiating a AxdCustomer object, assigning the necessary properties, and using the CustomerServiceCreateClient to perform the creation.

I understand that by creating a customer in Dynamics AX this way that it will also create a DirParty Table record and 'match' it with the customer that I've created.

However, I was wondering, is there a way through the AIF to do the opposite such as instantiate and create a DirParty Table record in AX that I can then retrieve and assign to customers that I create in the future with the party number for example?

The issue that I am running into is, if I instantiate an object such as AxdEntity_DirParty_DirpartyTable - How do I get this into AX since I cannot pass this object to CustomerServiceCreateClient because it is expecting an obvious AxdCustomer object.

Lastly, do I need to expose a method from AX that I can reference and call from the C# side of things? If so, what method would I expose.

Thank you,

*This post is locked for comments

I have the same question (0)
  • Rudi Hansen Profile Picture
    4,079 on at

    Can you post the C# code you are using, then i might be able to help you further.

  • Verified answer
    Community Member Profile Picture
    on at

    Rudi,

    I appreciate you offering to help me with this.

    My apologies for the delay but I was able to resolve this issue after looking into it further.

    For anyone curious, I wrote a custom function in x++ that inserted a DirPartyTable record. I then returned that to the c# call which was performing the request .

    Thanks again.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans