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?
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.
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áb230,605Most 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.
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.