mscrm-addons.com - Blog

IMPORTANT INFORMATION

This blog is deprecated since July 2020.The articles below are no longer maintained and might contain outdated information. 
You can find the most acutal and relevenat information in our Knowledge Base at support.mscrm-addons.com

News.mscrm-addons.com Blog

rss

Hello and welcome to our blog! What can we do for you? Are you looking for further technical information or step-by-step instructions to our products? Or would you like to read the latest news on mscrm-addons? Please feel free to browse our blog for detailed information and to share our posts!


How to add information of the current user to a document

It is quite common, that user information shows up within the document itself. (e.g. a “Best regards, firstname lastname” at the end of a quote).
This Step-By-Step tutorial describes how to add this relation to a template. In this example the Quote_base.docx template, that comes with the installation of DCP for CRM 2011, is used.

Please note: DocumentsCorePack (DCP) Client version 5.27 or higher is mandatory!

Since DCP Client v5.27 it is possible to use so called predefined relationships. This means that it is possible to predefine relationships like quote->quote products or a relationship to the actual user in a global mscrm-addons setting.

Please note: in DCP server versions < v5.15, the settings for the actual user are installed by default.

If your server version is 5.15 or lower, please open CRM, navigate to Settings->MSCRM-ADDONS.com Products and open DocumentsCorePack:

Figure 1: DocumentsCorePack Settings

Once there, create a new “mscrm-addons.com”-settings key:

Keyname: DOCX_Global_Relationships
Keyvalue:

 
    8
   
       
            Benutzerinfo
            Ermöglicht die Verwendung benutzerspezifischer Daten in Docx-Vorlagen
       

   

    User Info
    Use all the fields from the logged<br/>on user in your document.
    <fetch mapping='logical' version='1.0'>
     <entity name='systemuser'>
          <all-attributes />
          <filter>
               <condition attribute='systemuserid' operator='eq-userid' />
          </filter>
     </entity>
</fetch>

 


 

Figure 2: New settingskey

Once this is done, simply restart MS Word and the DataProvider on the Client. Click on the [Insert Mailmerge fields]-button and switch to the Additional–tab. You will see the global relationships by expanding the New Relationship/Entity–entry.

Figure 3: DocumentsCorePack Task Pane - Additional tab

Once clicked, the fields of the user will be shown in the treeview:

Figure 4: DocumentsCorePack Task Pane - TreeView with user

That’s it! We appreciate your feedback! Please share your thoughts by sending an e-Mail to support@mscrm-addons.com.




Comments are closed.