Code snippet: How to export the *.xpo file with plain text instead of labels?

Sometimes, there is a need to export the project (*.xpo) file without labels and label references. Microsoft Dynamics AX2012 only allows us to export the project with labels references (for example @SYS91093) or with labels references along with its' values (in this case the file will also contain the value of @SYS91093). But what if have to export/import some customization and the best practices are avoided and everything on the target application is maintained in plain text?

Here you can find a simple class which gets the *.xpo file as an input, asks for label file ID and language and coverts these labels into plain text.

Leave a Reply