AX model information

Get list of models in a Model Store

Microsoft Dynamics AX 2012 Management  Shell
Get-AXModel -Layer <LayerName>
AXUtil
axutil list /layer:<layername> 
axutil list /s:"SqlServerName" /db:"SqlDataBase_model"

View the contents of a model manifest

Microsoft Dynamics AX 2012 Management  Shell

Get-AXModelManifest -File <Filename.axmodel>
Get-AXModelManifest -Model <Modelname> -XML
AXUtil
axutil manifest /file:<filename>
axutil manifest /model:<modelname> /xml

Change model manifest property

Microsoft Dynamics AX 2012 Management  Shell
Edit-AXModelManifest -Model <Modelname> -ManifestProperty "Propertyname = Value"
AXUtil
axutil edit /model:<modelname> /manifest:PropertyName=Value

Get list of all objects in a model

Microsoft Dynamics AX 2012 Management  Shell

$elements = (Get-AXModel -File "Path model file" -Details).Elements
$elements | Export-CSV "modelContent.csv" -NoTypeInformation

$elements = (Get-AXModel -Model <modelname> -Details).Elements
$elements | Export-CSV "modelContent.csv" -NoTypeInformation

AXUtil

axutil view /model:<modelname> /verbose
axutil view /file:<filename> /verbose


Support The Author

 If you found value in what I share, I've set up a Buy Me a Coffee page as a way to show your support.

Buy Me a Coffee

Post a Comment


All Comments


vignesh seetharaman 04 June 2016

Hello,

I tried to list all objects from my model. I used "$elements = (Get-AXModel -File "Path model file" -Details).Elements

$elements | Export-CSV "modelContent.csv" -NoTypeInformation". But I am getting an error stating that "Model is from a newer version of ax and cannot be installed".

I need your help.

Thanks in advance


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