Skip to main content

Posts

How to uninstall model from UAT/PROD environment

Recently I need to deleted model, which was installed on the UAT/PROD environment via LCS. So I do not have access to the file system. And all the controls are carried out with the help of the LCS. And there was a need to remove the model from the environment via the LCS.
Please find below the instructions for uninstalling a model in UAT/PROD.

If the model is extension model:
1.Delete all the components from a model and create a deployable package out of it.
2.Create a text file called “ModuleToRemove.txt” and put it into the AOSService\Scripts folder
3.In the text file, put in the name of the module you want to remove, for example – “MyModule”
4.Zip up the package and upload into the asset library
5.Apply the package in a sandbox

If the model is an overlayered model:

1.Remove it (over layered code) from DEV environment in Visual Studio
2.Build the module (say if you have overlayered Application suite, build the Application suite module again after over-layering is removed)
3.Create …
Recent posts

How to import project from one model to another (D365FO)

Hello, Imagine a situation when you have a project that you developed in your own environment in some model. Then you need to import your project into another machine into a certain model (such design rules or something else that forces you to do this).
And then we do not know how to do it, because if we use the standard import method, then our project will load into the source model, and if it does not exist, then it will create it.

There are two ways to get out of this situation:
Download the project in a standard way, and then create a project in the model you want and duplicate all the elements from AOT that were in the imported project in your project. Well, then delete the elements and the project that you imported, Build, Sync and rename duplicate elements Move metadata items. Imagine what we need to export project1 from "Model 1" to "Model2".
Export the project from one system. Import the project into another system. Go to the ...AOSService \ PackagesLocalD…

Create and run Custom Service in D365FO (AX7) Part 2

In the previous article, I created two services and checked their work.

Let's upgrade the work of our first service in such a way that it could run as many threads as possible, each of which will generate a unique text string, and the service AUTOMATICALLY will call our second service and transmit the generated string. It sounds interesting. Let's get started

I changed the first service in such a way that now it takes as the parameter the service that you want to call, the number of threads, the time of the sleep of each stream. Also, the service now returns a string with the list of thread identifiers it created. I also changed the name of the method, so before you start the service, you need to change the name of the method that is attached to the service operation.

About how to create asynchronous methods in AX7 read on my blog.

class GenerateUniqueString { public str runAsync(str callbackService, int threads, int sleepMS) { List tasks = new List(Types::Clas…

Create and run Custom Service in D365FO (AX7) Part 1

NOTE: Whenever I write a Google query to find information about the new AX system, I mention the bad word of those who create the name for the Microsoft products. Therefore, in order not to write many letters, I will use the name of AX7 instead of Dynamics 365 for Finance and Operation.

In this topic we will create a some two servises, which communicate in async mode.


In our case External System it is our AX services which starting in async mode some operations and each of it operation invoke another AX service which create new file locally.

In the new version of AX, the creation of custom services is a very simple operation. All you need to do is create a service group that will automatically be deployed, create a service and add it to the service group. And finally, link your service with the class which will be responsible for the logic of the service.

Let's create two services, one of which will generate a unique text string asynchronously within itself. In addition, the firs…

How to create an asynchronous method in D365FO

In d365 for finance and operation a new static method was added to the global class – Global::runAsync() Let’s create some asynchronous operation: class SomeClass { public static void main(Args _args) { SomeClass::runAsync(); } } Ok, Let’s create a table in which the result of each operation will be recorded, a regular table with two fields such as a container and string types. And then launch ten threads for execution. Also, each of the threads created will be written to the list to then check the status of each of them, and after the start of all threads, we will also launch an operation that will check the status of each stream. public static void runAsync() { System.Threading.Tasks.Task someTask; List tasks = new List(Types::Class); Counter counter = 0; boolean threadsStarting = true; for(int i = 0; i < 20; i++) { // Run Asynchronous task someTask = Global::runAsync( classNum(SomeClass), staticMet…