Publications

Custom scripts with zero downtime

Custom scripts with zero downtime - create a new model containing only one Runnable class - write code in main method of that class - create deployable package from VS for that model - upload package to System administration / Periodic…

D365FO copy inventory dimensions

private InventDim copyInventDim(InventDim _inventDim) { InventDim inventDimLocal; inventDimLocal.InventDimFieldsMap::initAllDimensionsFrom(_inventDim); inventDimLocal = InventDim::findOrCreate(inventDimLocal); return inventDimLocal; }

D365FO search in lookup by multiple fields

If you want to make a lookup control on your own dialog or form with functionality for searching by more than one field in lookup, you can do it. For example, let's look at how product search works in multiple fields, we can use the…

D365FO oData PATCH URL limitation

There is ItemCoverageSettingsV2 data entity with a lot of key fields. And therefore when you try to update it with PATCH request it will fail: PATCH https://environment.dynamics.com/data/ItemCoverageSettingsV2(dataAreaId='vk',…

Extend product hierarchy and release process

Will add Direct Delivery checkbox and Direct delivery warehouse fields to Retail and Commerce / Products and Categories / Commerce product hierarchy: The fields needs to be added to RetailProductAttributesLookup table, then added to the…

D365FO JSON serialization and deserialization

Contract classes: JSON example: Runnable class to serialize contracts to JSON and then deserialize JSON back to same contracts: JSON does not have to completely match the contract. In that case only matching properties will be filled in.…

How to store encrypted passwords in D365FO

Here is how you can store encrypted passwords in D365FO: 1. Preferably create a new table specifically for this purpose Create a new field of type container and EDT EncryptedField called "Password" 2. Overwrite update and insert methods of…

Override form control Lookup using extensions

Expand controll Events node and right click on OnLookup and select Copy event handlr method. To supress standard lookup method and following warning message: More than one form was opened at once for the lookup control. Use following code:…

Restore/move D365 database

Restore data base from same tenant (company) 1. Open as Administrator PowerShell Install if not installed d365fo tools in power shell - Install-Module -Name d365fo.tools - Invoke-D365InstallSqlPackage 2. Restore database if BACPAC file in…

Get exception from infolog X++

public str getErrorStr() { SysInfologEnumerator enumerator; SysInfologMessageStruct msgStruct; Exception exception; str error; enumerator = SysInfologEnumerator::newData(infolog.cut()); while (enumerator.moveNext()) { msgStruct = new…

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