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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Visual studio Not allo...
Finance forum

Visual studio Not allowing to create extension of NumberSeqModuleCustomer

(0) ShareShare
ReportReport
Posted on by 255
why visual studio is not allowing me to create extension of NumberSeqModuleCustomer class even if that package is referred while creating the model??
MicrosoftTeams_2D00_image-_2800_1_2900_.png
I have the same question (0)
  • Suggested answer
    Pete Alberts Profile Picture
    3,546 on at

    You can't create a class extension with that method. Create a new class in your project and then specify it as an extension of NumberSeqModuleCustomer.

    Here is the docs page: docs.microsoft.com/.../method-wrapping-coc

  • Akshay Thombare Profile Picture
    255 on at

    But why it's not allowing to create extension directly for  class from that "Create extension" option whereas other data element are showing the same option

  • Verified answer
    Pete Alberts Profile Picture
    3,546 on at

    MS haven't supplied that convenience to us (yet). I agree it will be nice. But then again it is so quick to create it... it won't be much of an automation

  • Akshay Thombare Profile Picture
    255 on at

    So Basically its not available to anybody to directly create extension from "create extension" button

  • Verified answer
    Pete Alberts Profile Picture
    3,546 on at

    Correct. It is the same on my machine.

    Maybe it is interesting to note that an extension of any element except classes (and label files, but that's another story) is an element type in the AOT. For example you get Forms and Form Extensions. An extension of a class is still a class. Not Class Extension. Then again that is just how it is presented to us.

    But the answer is still simple: If you want to extend a class - create a new class. It's like that everywhere and for everyone 

  • Akshay Thombare Profile Picture
    255 on at

    Okay,Thank you so much

  • Suggested answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    As Pete mentioned behavior is same for all but you can use below add in to speed up your development task.

    github.com/.../TRUDUtilsD365

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans