Since I don't know what the requirement at the Dynamics CRM end are, I'm
not sure the following will help, but...
1. There are two sorts of Word XML format:
a. single-file .xml, which contains WordProcessingML. There are two
main varieties of this: Word 2003 and Word 2007. The Word 2003 sort can
contain macros. The Word 2007 sort cannot (as far as I know).
b. .docx/.docm (and .dotx/.dotm). These are ZIP files with chunks of
XML and various pieces of structural information. .docm/.dotm files can
contain macros.
The Word .xml file is not a template in the strict Word sense of the
word (i.e. the basis for a tear-ff copy of a document), nor is the
..docm. If your document has to be a template, it will have to be a .docm
If the "template" in Dynamics has to be a proper .xml file, it can't be
a .docx/.docm because they are not actually XML
In both .xml and .docm/.dotm, the macro code is saved in a binary or
encoded format (i.e. you cannot actually read the code). In the case of
the Word 2003 xml file, the encoded macros are contained in one or more
ordinary elements of the xml. So it's still a proper XML file. In the
..docm/.docx, the code is contained in a .bin file within the zip file.
So even if Dynamics can manage a .zip file, it may not like the .bin.
Someone was asking about this last year and commented that
"CRM will not allow me to upload a word doc with macro"
If that's true I guess it doesn't matter which format you save as.
Peter Jamieson
http://tips.pjmsn.me.uk