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)

Create project and nested sales order by x++ code

(0) ShareShare
ReportReport
Posted on by 85

Hello all,

I'm new to AX 2012 Development.

My case is  I have a third party application which totally manage sales orders with a custom workflows and several hard customizations

I want to add the final result of my sales order to a AX sales order nested in a project

So I want to know which methodology to run into for creating project and then create a nested sales order dynamically by code.

Please clarify as much as you can, Considering my noob knowledge.

Thank in advance

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Did you try to use Google search? There are a ton of examples on how to create sales orders and projects, such as these:

    http://ax2012xppdataimport.blogspot.hu/2013/12/microsoft-dynamics-ax-2012-xpp-sales.html

    www.kevinroos.be/.../salesautocreate-class

    dynamicsaxgyan.wordpress.com/.../create-projects-or-sub-projects-using-x-dynamics-ax

    Actually there are multiple ways to achieve this, all depending on your requirements for the implementation.

    Such as is the creation of the records initiated by the third party? Then you need to consider how it will talk to AX, such as through the Application Integration Framework. From that point depending on the complexity of your requirements, it would either be a Document Service, or a Custom AIF endpoint.

    I am afraid we will not be able to provide step-by-step instructions, but you need to analyse the requirements specific to your case, then make development decisions based on those. You should involve a senior AX developer for making such decisions correctly.

  • Ahmed Awwad Profile Picture
    85 on at

    Thank you for your reply.

    Actually I've used google search but had no luck to find such a Project creation with nested sales order!!

    All talks about creating separate sales order.

    I'm not asking for step by step instructions I will walk the path myself but was asking about the method I should use since I don't know any of it.

    So my thought is working on separate ways (Please correct me)

    1#: The third party must created the project and it's sales order

    2#: The third party create file that AX understand to import it and create the project and it's sales order if 1# fails (Manually)

    PS: the data is similar to AX sales order data so no complexity

    For 1#: As I understanded from your description I should use the AIF to achieve this so I will check its module to try it (Correct me if I'm wrong)

    For 2#: Is there is anything can do this?

    Thanks in advance.

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    AIF is the tool for third party integration scenarios, and it can use a wide range of exchange options. Windows Communication Foundation Framework (WCF) messages through HTTP/HTTPS and net.TCP (this is preferred) ports, or File adapter to pick up data files that your partner could push through FTP, or BizTalk for example.

    It is up to you or the partner to either directly provide a message envelope that AX understands in XML format, or provide it in their XML format and then do an XSLT transform to convert it into a digestible format (AIF has support for this).

    I am unsure I understand your requirements about "nested" sales orders vs. projects, the best would be if you talk to a functional consultant working in this area to gather the requirements on how to create such data. Then you could walk through the steps and debug if necessary to find the underlying AX code to recreate them. Likely it already works similarly to how such data are created which I have linked above, with minor modifications to store the reference between the two business area (supply chain vs. projects).

  • Ahmed Awwad Profile Picture
    85 on at

    Thank you :)

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
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans