web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

XML Data Structure in Word Template not updating

(0) ShareShare
ReportReport
Posted on by 95

Hi,

I was creating a word template on my lead entity and everything was working well. After some time I added a new field to the appointment entity (which I also use in this template) and now I want to use this new field in the template but it is not available. Also if I download a new template for the lead entity (with the same related entities but also we more entities) its not updating the available fields and tables. 

Hope somebody can help me to update the XML used by Word. 

Thanks and BR

Mario

*This post is locked for comments

I have the same question (0)
  • Tushar2016CRM Profile Picture
    1,130 on at

    HI ,

    Your Question is not very clear .

    It seems you need to download XML for Lead Entity for editing the customisations or u need to download template to import records ?

    Thanks !

  • Joe Gill Profile Picture
    on at

    Hi Mario,

    the field wont exist in your existing templates as the XML schema is stored in the Word document

    The new field should be available is you download a new template

    Joe

  • Mario N Profile Picture
    95 on at

    Hi Joe,

    Thanks for your answer.

    That's exactly what I expected. But if I download a new template nothing changes. It seems that the xml definition for my lead template is not updating. Do you know if this definition is saved within the word or if it is saved somewhere on my laptop? If so I wold delete it and try to download a new template.

    Best regards

    Mario

  • Joe Gill Profile Picture
    on at

    Hi Mario,

    Saved within the word doc AFAIK.  Did you publish your change not sure if it makes a difference as field are usually available immediatley.

    I will try later when I get some time

    Joe

  • Mario N Profile Picture
    95 on at

    Hi Joe,

    Yes I saved and deployed it.

    Mario

  • Suggested answer
    Joe Gill Profile Picture
    on at

    Hi Mario,

    I just did a quick test and it should work as we discussed. I created a template for opportunity I then added a new field, without publishing, and created a second template.  The new field was available in the second template but not the first.

    1122.template.png

    Not sure why yours is not working

    hth

    Joe

  • Suggested answer
    Mario N Profile Picture
    95 on at

    Hi Joe,

    once again thanks for your effort. And of course you are right - the Word file gets updated!

    My mistake was a simple one. I created the new fields not with my regular prefix but with "new_" instead. Sorry for making you work on this topic because of my slovenliness.

    But there is one good thing - I had a closer look at the Word Template and how the table structure is saved in it. Here some insights:

    If you change the ending of the Word document to zip and open the archive you will find a folder called \customXML with the file item.xml.

    In this xml all fields and tables are listed and it would be possible to add more fields manually. Which is a option to update the template in case you have new fields you want to use. Downloading a new template and copying everything from the old to the new Word wouldn't be necessary any more.

    Thanks again!

    Mario

  • Jmdga Profile Picture
    on at

    Worked like a charm - thanks for the tip!

  • Tin Profile Picture
    1,562 on at

    great your comments too helpful for me Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans