Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Is there a way to acce...
Finance forum
Unanswered

Is there a way to access the code and element from a deployable package or DLL of a model?

Posted on by 108
Hi,
 
I have a quick question, I need to make some changes in the already created custom model but there is an issue that I am facing. When I navigate to model folder in PackagelocalDirectory I see only the following folders.
 
Is there a way to get the model elements from the DLL by decompiling it or by deployable package?
 
 
Thanks.
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Is there a way to access the code and element from a deployable package or DLL of a model?
    Hi,
    If the answer below is useful, you can mark this as verified to help more people with similar problems. Thanks in advance.
    Best Regards,
    Hana
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    Is there a way to access the code and element from a deployable package or DLL of a model?
    It's not clear to me why you think it may be deployed if you're saying that it wasn't deployed.
     
    No, it's not possible that your changes would get deployed without being in a at least one deployable package. But it's possible that the person is not aware of it. It's strange that he or she talks about selecting model, because that should be defined by a build pipeline. If people do it manually, trackability is indeed a problem, but a deployment should fail if you include a model once and then exclude it next time (unless you do an extra step).
     
    But we're off-topic here; this thread is about "Is there a way to access the code and element from a deployable package?". Feel free to create a new thread if you want to discuss your deployment procedures.
  • ShahzaibAhmed52 Profile Picture
    ShahzaibAhmed52 108 on at
    Is there a way to access the code and element from a deployable package or DLL of a model?
    Got your point Martin but I have a silly question. I talked to the person who deploys the changes to UAT and production. He said that we don't select this model when creating a deployment package. Is it even possible that the changes in this model exist in the production without even adding a model to the deployable package?
  • Martin Dráb Profile Picture
    Martin Dráb 228,135 Most Valuable Professional on at
    Is there a way to access the code and element from a deployable package or DLL of a model?
    You have just binary data created by compilation, not source code. You should be able to get any version of code from your version control system. And if you have a sane process to create deployable packages (using build pipelines), you can be sure that all code must have come from source control.
     
    If you don't use a version control system, stop all other work and resolve this critical process bug first.
     
    There is no decompiler from CIL to X++. There is a way to decompile it to some other languages, such as C#, but what you'd get would be very different from your original code, because of all the things that X++ compiler does under the hood.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

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

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,135 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans