Publications

Ship transfer order from code

Here is an example of X++ code to post the transfer order shipment with autoreceive and check that it was successful:

Cross company indexes

Cross-company indexes might be required to optimize cross-company oData queries. Or other cross-company X++ queries. By default, for company-specific tables (SaveDataPerCompany=Yes), DataAreaId is always included in the index at the…

Exchange rate operations

Exchange rate operations: Convert to accounting currency: Convert to a different currency: Get accounting currency: Get reporting currency: Convert currency with a class instance: Get the exchange rate:

Add/overwrite SSRS print management design

Add/overwrite SSRS print management design addOther vs addStandard. addOther - if populate (PrintMgmtReportFormat::populate()) is executed with standard code, it add a record to the PrintMgmtReportFormat table where System = Yes. Then, if…

Export related work items from pull request to Excel or CSV

Create a draft Pull request with linked work items from one branch to another. Open a new window and update next URL with your information: Copy and paste the JSON result to any service for converting "JSON to CSV" or Excel (e.g.…

Location directives behaviour modification

Relevant menu items: Warehouse management / Setup / Location directives Warehouse management / Setup / Warehouse / Fixed locations / Product variant Warehouse management / Setup / Warehouse / Location stocking limits Warehouse management /…

Database snapshots

If you need to debug something that will destroy your test data, that is not easy to recreate (i.e. posting a complex journal), then normal approach would be to take DB backup, and restore it after you finished debugging to debug…

Sharepoint / DownloadZip action error

Error: SharePoint Site Address 'https://uksouth1-mediap.svc.ms/' is not valid clientRequestId: xxxx-xxxx-xxxx-xxxx-xxxxx. With a recent update to power automate, Microsoft seems to introduce a new validation, which blocks the creation of a…

MD5 hashing

MD5 hashing + transformation to HEX format for the value to be JSON/XML compatible.

Convert String to System.IO.Stream

str string = 'some string'; // Convert String to System.IO.Stream System.Byte[] byteArray = System.Text.Encoding::get_UTF8().GetBytes(string); //System.Byte[] byteArray = System.Text.Encoding::get_ASCII().GetBytes(string);…

Context and System.IDisposable

Can be used to deliver context parameters if it is not possible to do it via usual method parameters. Runnable job, which defines context: Execution infolog: Context class with required parameters/logic The class that consumes context:…

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