Wednesday 6 May 2015

Export list of model elements to Excel - Ax 2012

Hello Guys..!

Here I'm sharing code for export list of model elements to excel .


Step 1: Open "Microsoft Dynamics Ax management shell" from Administrator Tools.

Step 2 : paste the below code

(Get-AXModel -Model 'VAR Model' -Details).Elements | select path, elementtype | `
Export-Csv -NoTypeInformation -Delimiter ';' c:\varmodel.csv


Note : In this example I'm exporting VAR Model.
          Go to c:\varmodel.csv


That's it


@Rahul Talasila

No comments:

Post a Comment

Adding a newline into a string in C# and X++

Below is the sample code we can use for  adding a newline after every occurrence of "@" symbol in the string in C#   using System...