web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Answered

How to make DataMemberAttribute of contract class to be flight-controlled

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
Hi experts,
 
I have a contract class that using for a menu item action.
It doesn't have a AifQueryTypeAttribute before, now I added it into the contract class in my new fix.
But I want to make it to be flight-controlled, which means, if we disable the flight, user won't see the newly added AifQueryTypeAttribute from the UI.
 
Is that possible? Do we have an attribute to achieve it?
Please share your valuable insights. Thanks a lot!!!
  • André Arnaud de Calavon Profile Picture
    308,284 Super User 2026 Season 2 on at
    Hi Kai,
     
    Can you elaborate on the flight? Are you tring to find out if a Microsoft flight is enabled or do you have an own flight mechanism for your solution?
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    If you want to skip adding a property or set it to the default value of a hidden property when the flight is disabled, you can try to use conditional logic. For information about fights, you can also check out this blog:
    Everything about Flights in D365 F&O. (dynamics.com)
    Best Regards,
    Hana
  • Verified answer
    Kai Cheng Profile Picture
    Microsoft Employee on at
    In UIBuilder class, when bind dialog field with contract value in postBuild(), I can set the control visible or not controlled by flight then.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 62 Super User 2026 Season 2

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 57 Super User 2026 Season 2

#3
Patrick Mouwen Profile Picture

Patrick Mouwen 50

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans