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, ...
Answered

AIF - XML Data Exchange (B2MML scheme)

(0) ShareShare
ReportReport
Posted on by 5

Hi,

i'm pretty new on AIF and unfortunately i don't really get it.

Scenario:

System: AX 2012

I have a developed a staging table for data exchange with an external system (custom two table hierachie with header and position values... pretty similar to salestable /salesline).

The data will be exchanged with xml files in B2MML scheme.

Furthermore the data exchange will be bi-directional so i have to export and import those xml files.

What's the way to go here?

Should i use AIF  - even if it's outdated in D365 ?

If so... how can I achieve the xml translation? I couldn't find something helpful in web so far. I did an tutorial for a simple document service outbound port with a query. That worked, but I don't realize how to translate the xml into the B2MML scheme. 

Or should i develop the xml export by myself with an simple batch job?

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

    AIF is indeed deprecated in D365, but in AX2012 it might be your best option. Other option would be Data Import / Export Framework. But even that's not 1:1 compatible with DIXF in D365.

    In either case, you need to transform the XML into a format that AX understands. In AIF you can apply XSLT file in the AIF endpoint. Other option is to transform the file before it's sent to AX (and after file is exported from AX in export scenario).

    This part is not at all specific to AX, so you can use any solution to transform the file.

    Often an integration platform such as Biztalk or LogicApps is used to transfer messages between systems and handle transformations.

  • Verified answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    You can read more about transformations of AIF messages in About the AIF Pipeline and Transforms.

    You can use either XSLT or a custom .NET library. When transforming one XML format to another, XSLT is a natural choice. Knowing XSLT is very useful if you work on integration projects, but it might take some time to get used to its philosophy, if you're not familiar with things like pattern matching.

    In D365FO, you'll have to replace AIF documents with data entites and update your transformations.

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 646 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans