Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

Is there a way to force an AIF Inbound Port to generate a schema in Alphabetical order?

Posted on by 2,005

Hello all,

So after figuring out for the most part how to effectively use an AIF inbound port to update a document, I am having an issue where when I activate the port that I created to expose my new service, the XML schema is not generating the field names in alphabetical order. In fact, I don't see a rhyme or reason to how it does organize the field definitions, but our third party subscription service that is generating the inbound XML is generating it in alphabetical order, so I need the schema to match. (I've seen the errors that occur when they are not in proper order.)

Is there a way to force the schema to generate in alpha order, or do I have to manually edit the schema document and put it in the source folder where it belongs? This service only updates and the schema is very small, so I can do this, but having seen how AX blows away the source folder when you de-activate a port, we would have to be cognizant that any de-activation/re-activation would probably "break" the service in the process.

Any advice is gladly appreciated.

Brandt Fundak

  • RE: Is there a way to force an AIF Inbound Port to generate a schema in Alphabetical order?

    It's not possible. Also manually changing the schema will result in errors

  • Brandt Fundak Profile Picture
    Brandt Fundak 2,005 on at
    RE: Is there a way to force an AIF Inbound Port to generate a schema in Alphabetical order?

    A quick addition to this post--I have determined the logic of the schema generation. It is listing them via the field Id of the fields on the table. They underlying query to the service only uses one table--SalesLine and the fields we selected are in order of their field Ids. Still I have services that generate their schema in alphabetical order per entity, so I am wondering how to force AX to do this.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans