Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Answered

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

Posted on by
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!!!
  • Verified answer
    Kai Cheng Profile Picture
    Kai Cheng on at
    How to make DataMemberAttribute of contract class to be flight-controlled
    In UIBuilder class, when bind dialog field with contract value in postBuild(), I can set the control visible or not controlled by flight then.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How to make DataMemberAttribute of contract class to be flight-controlled
    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
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 on at
    How to make DataMemberAttribute of contract class to be flight-controlled
    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?

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

Featured topics

Product updates

Dynamics 365 release plans