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)

Application Integration Framework (AIF) to integrate Microsoft Dynamics AX with external Software systems

(0) ShareShare
ReportReport
Posted on by

We have achieved Asynchronous Inter-process communication (MSMQ) among the systems by using MSMQ Adapter at Outbound port + Batch Jobs + public queues at other end.

How we can achieve process integration without writing single line of x++ code at Dynamics AX.

We are looking forward to know the technical feasibility to achieve reliable XML document exchange among the systems(Dynamics AX source of the data)

We have achieved Process Integration by writing code at corresponding actions (Close Action, Save and Close action, Read Action ...) now both system are communicating well but we thought this is not a correct approach at production level.

Is it possible to do Process Integration (Documents Exchange) without writing single line of x++ code at Dynamics AX.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    239,303 Most Valuable Professional on at

    You don't have to write any code if existing document services meets all your requirements.

    If they don't, you obviously have to customize them or create new ones by yourself. Note that the AIF Document Service Wizard will help you with creating new document services.

  • Community Member Profile Picture
    on at

    Thank you for your kind information,

    Would you please find what we did,

    Existing document services are enough for my requirements, but we didn't get this service automatically whenever the action at Dynamics AX.

    Note: We are getting existing document service by writing following code at read/create/delete/update actions on form.

    public void close(Args arg[]){

    AxdSendContext axdSendContext;

       AifEntityKey aifEntityKey;

       Map keyData;

       AifConstraintList aifConstraintList;

       CustTable       vendTable;

       AifConstraint aifConstraint;

       super();

       axdSendContext = AxdSendContext::construct();

       aifEntityKey = AifEntityKey::construct();

       aifConstraintList = new AifConstraintList();

       aifConstraint = new AifConstraint();

       vendTable = CustTable::find(CustTable.AccountNum);

       keyData = SysDictTable::getKeyData(vendTable);

       aifEntityKey.parmTableId(vendTable.TableId);

       aifEntityKey.parmRecId(vendTable.RecId);

       aifEntityKey.parmKeyDataMap(keyData);

       axdSendContext.parmXMLDocPurpose(XMLDocPurpose::Original);

       axdSendContext.parmSecurity(false);

       aifConstraint.parmType(AifConstraintType::NoConstraint) ;

       aifConstraintList.addConstraint(aifConstraint) ;

       AifSendService::submitDefault(

           classnum(CustCustomerService),

           aifEntityKey,

           aifConstraintList,

           AifSendMode::Async,

           axdSendContext.pack());

    }

    The above is the external code put at form close action for getting customer document service.

    Would you please suggest us to achieve 'existing document exchange' without writing single line of code.

    We are new to Dynamics AX (We put lots of effort on it but we didn't achieve completely), we are looking forward for your vital suggestions and kindly provide the steps to achieve this task.

    Kind regards,

    Naresh P.  

  • Suggested answer
    Martin Dráb Profile Picture
    239,303 Most Valuable Professional on at

    I don't think there is any way "without writing a single line of code". You either become willing so write a few lines, or you end up with "can't do".

    AX can't know what documents you want to send if you don't tell it.

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 26

#2
imran ul haq Profile Picture

imran ul haq 8

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans