Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

How to add code in a FORM which is an extension from Microsoft feature ?

(0) ShareShare
ReportReport
Posted on by 592
Hi all,
 
I'm activate Subscription Billing feature, and in that regards there are few form on this model.
Question is how to add code to that form ? for example in SalesTable form there is a button Deferrals which only exist in that Subscription Billing model.
And I already have an extension to this SalesTable form long time ago, before this Subscription billing model exist, and as far as I know, we only extend from the original form.
 
Thanks
  • Suggested answer
    Arunraj Rajasekar Profile Picture
    Arunraj Rajasekar 1,731 on at
    How to add code in a FORM which is an extension from Microsoft feature ?
    Hi Voltes,
     
    If i understand your question correct, you want to utilize the elements from new subscription billing. Add new model as one of the reference model to your custom model. Make sure you have condition to check if the feature is active or not before executing the code related to features elements.
     
     
  • Suggested answer
    Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    How to add code in a FORM which is an extension from Microsoft feature ?
    Hi,
    If your question is as stated in your title, then, here are the articles for you to review:
    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/extensibility/customization-overlayering-extensions#form-extensions
    Dynamics Community Blog Post Details
    Best Regards,
    Hana
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 230,848 Most Valuable Professional on at
    How to add code in a FORM which is an extension from Microsoft feature ?
    It's not clear to me what you need from us, so let me give you a few different answers:
    • You model needs a reference to Subscription Billing model if you want to work with elements from there, e.g. the extension of SalesTable form.
    • To extend forms, you have several options, depending on what you're doing. You can create extension classes (for forms, data sources, controls), subscribe to events, extend objects called by buttons and so on.
    • If you want to extend the logic of Deferrals button and you mean SubBillDeferralsButton control, notice that it's a menu item button. Usually, you should extend the object called by the menu item and not the form containing the button. In this case, the button opens SubBillDeferralTransactionDeferral form.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans