Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

fields visibility in xml message in AIF document services

(0) ShareShare
ReportReport
Posted on by 2,953

Greetings Peers and hope everyone doing good!!!

I am working on AIF in AX 2012 , sales order document service which is a standard one. Please share your inputs on below two queries

1. How can we make field visibility false always even it has value or not. don't want to show this filed in xml . consider field "CustAccount" as example

2. Field should show in xml even it has value or not. in standard I observe when there is no value in the field, then the field  won't be visible in xml. consider field "CustomerRef" as example

Below are the some of the objects used in this document service

Query:

AxdSalesOrder
Classes:
AxSalesLine
AxSalesTable
SalesSalesOrder_SalesLine
SalesSalesOrder_SalesTable
Xml message and query screenshot for reference
SalesXmlDoc_5F00_query.PNGSalesXmlDoc.png
  • krishna.rao@dax Profile Picture
    2,953 on at
    RE: fields visibility in xml message in AIF document services

    I'm able to achieve first case1, by not enabling second one not working.

    I kept both warehouse and batch number not having values..in transfer order service,,

    also did check marks on enabled, required,, none of them showing in xml.. I'm unable to achieve case 2. Field should show in xml even it has value or not.

    I didn't understand use of required, even field won't have value neither showing in xml nor giving error message.. Find below screenshot for reference.

    Transfer-ordres-_5F00_example.PNG

  • Suggested answer
    Martin Dráb Profile Picture
    231,923 Most Valuable Professional on at
    RE: fields visibility in xml message in AIF document services

    Go to the integration port and open data policies (see Customize service contracts for more details). Disable fields that you don't want to include. And tick "Required" on fields that you want to always include in the file (I might be wrong, but I think it'll do the trick).

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,238 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans