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?

  • Verified answer
    Martin Dráb Profile Picture
    231,925 Most Valuable Professional on at
    RE: AIF - XML Data Exchange (B2MML scheme)

    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.

  • Verified answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: AIF - XML Data Exchange (B2MML scheme)

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,925 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans