This example converts a List of string into a string delimited by comma public static str strList2str(List _list, str _delimiter = ', ') { ListIterator listIterator = new ListIterator(_list); str result; while (listIterator.more()) { result += listIterator.value(); listIterator.next(); if (listIterator.more()) { result += _delimiter; } } return result; }
Category: Utility
AX – D365 – Import and Export project with multiple objects using Visual studio
Overview In Visual Studio we have solution that contains multiple projects. These projects helps us to organize and manage the elements. Each project contain elements from only one model. In order to move elements from one environment to another in D365, It can be easily done by using project package file which contains list of … Continue reading AX – D365 – Import and Export project with multiple objects using Visual studio
AX – D365FO – Get List of all form patterns
if you want to know which pattern a fomr utilize you can run a Visual studio utility called "Run form pattern report". Access Visual Studio Go to tab Dynamics 365 --> Addins --> "Run form pattern report" Wait less then a minute and this message popup will appear. Open the file in the shown directory
Visualize line numbers in Visual Studio editor
D365FFO – Identify all extension changes made to the base form
There are two possibilities : Right-click the base form and select view references.In the search bar on the form extension element, enter the text e:. Customization and Extension - Example: Navigate to FMRental.Extension in the Tree DesignerIn the Visual Studio, in Solution Explorer, in the FleetManagement Discounts project, expand User Interface > Form Extensions. The … Continue reading D365FFO – Identify all extension changes made to the base form
AX2012 – Analyzing SELECT statements using SQL Server Profiler
I recently had an issue when trying to create a new integration for the Dynamics Connector between Dynamics AX 2012 and CRM. The Connector integration would run, but no records were returned from the AX service that I had created for the integration. I needed to be able to see the SELECT statement that was … Continue reading AX2012 – Analyzing SELECT statements using SQL Server Profiler
Microsoft Dynamics AX 2012 Utilities – Trace Parser
Microsoft Dynamics AX 2012 Trace Parser – Trace Parser ships with Microsoft Dynamics AX. Trace Parser consolidates information from multiple sources, such as remote procedure calls (RPCs) and Microsoft SQL Server, to provide an integrated view of application performance at run time. Following are the details to installation and usage of trace parser: Installation procedure … Continue reading Microsoft Dynamics AX 2012 Utilities – Trace Parser
D365FFO – AX -X++ – Get buffer InventDim per Site/Warehouse/Location
//Get InventDim buffer inventDim.InventLocationId = importTable.InventLocationId; inventDim.wMSLocationId = importTable.WMSLocationId; inventDim.InventSiteId = InventLocation::find(importTable.InventLocationId).InventSiteId; inventDim = inventDim::findOrCreate(inventDim);
D365FFO – AX – X++ – Get Worker SalesTaker
HcmWorkerRecId hcmWorkerRecId = DirPersonUserEx::findUserWorkerReference();