Publications

Select all classes which implemented some interface

SysDictClass dictClass; List dataContainerClassList; ListEnumerator enumerator; classId dataClassId; str classNames; dictClass = new SysDictClass(classnum(MyAwesomeInterface)); dataContainerClassList = dictClass.implementedBy(); enumerator…

Switch Visual Studio team workspace

How to swith user workspace from UI Before changing user delete current workspace and mapping: To change user: Switch the user: Configure workspace: Click Advanced button at the bottom. Change Permissions to Public workspace Change working…

How to get list of private projects in the model

Job to get list of private projects in specific model To get the list of models on the layer: How to move project to another model: https://daxonline.org/1495-moving-a-project-to-another-model.html Get access to private project:…

Uninstall a model from UAT/PROD

To delete the model, which was installed on the UAT/PROD environment via LCS you need: Create a file that is named ModuleToRemove.txt. In the file, put the name of each module that you want to remove on a separate line. Create a valid…

POS Language texts deployment

How to create POS language texts once and got them deployed automatically on all systems with Retail initialization Modify following method: \Classes\RetailConnSeedDataGenerator\setPOSIsLanguageText All language texts stated in the method…

Find AOT objects by property

static void findAOTObjectByProperty(Args _args) { #AOT TreeNode treeNodeTables = TreeNode::findNode(#TablesPath); TreeNode treeNode; str strPropertyName = 'SaveDataPerCompany'; str strPropertyValue = 'No'; treeNode =…

Change Tracking Usage

Runnable class to install/re-install/disable change tracking scopes VKChangeTrackingSetupMode enum: MagentoProductChangeTracking, MDAProductInfoChangeTracking - queries in AOT with exact fields list. Changes in the stated datasources and…

How to debug AIF document service

Outbound message \Classes\AifOutboundProcessingService\runAsUserInPartition Comment out the content of try block: Add following line after the comment: \Classes\AifDispatcher\dispatchOperation Comment out following line: Do not forget to…

AIF document service jobs/info

Job to execute/process messages Example of "read" outbound: Example of "find" outbound. Export all records by query: In case of changes and adding new services: Forward compile of modified AxBC class Incremental CIL Restart AOS AX Client…

Create new HCMWorker (Worker)

Example of an x++ method for creating new Worker in AX2012 based on parameters as first name, last name, start date and we need preconfigured default position for hiring a new worker. This piece of code also updates existing worker.

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…

Singleton pattern template

Singleton pattern for single user session (process execution): Simplified for D365F&SCM: Test: Both numbers will be the same in a single execution. However, for the next job execution numbers will be different. Alternative: Context and…

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics 365 FO.

Authors are allowed to set their own "buy me a coffee" link.
Join us.

Blog Tags