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, ...
Suggested Answer

fields visibility in xml message in AIF document services

(0) ShareShare
ReportReport
Posted on by 3,006

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
I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    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).

  • krishna.rao@dax Profile Picture
    3,006 on at

    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

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