With this special version of the prompts feature, you have the possibility to select one or multiple related records while generating a document. This blog article covers a step-by-step example of how to set up look-up prompts in your templates with DocumentsCorePack Template Designer.
Step 1: Open the relationship
This special version of the prompt is defined within the relationship designer. To access it, complete the following:
❶ Navigate to the www.mscrm-addons.com tab. ❷ Select Insert MailMerge Fields to open the DocumentsCorePack Task Pane. ❸ Go to the Additional tab. ❹ Select Edit.
Within the Records to show section, you can find three options:
❶ Show all records
❷ Show a lookup window to select a single row
❸ Show a lookup window to select multiple rows
Step 2: Define the lookup prompt
Before you can create the prompt, you must select the base behavior of the relation.
a. Show all records
By selecting this option, all related records will be displayed and there is no need for a prompt.
b. Show a lookup window to select a single row
Select just one row instead of displaying all related records.
c. Show a lookup window to select multiple rows
Select multiple rows instead of displaying all related records.
Step 3: Define a Label
To define a label, click the ❶ Add/Update Labels button.
Each option requires at least one label. A label is a text that is displayed in the DocumentsCorePack dialog in front of the actual control.
If a label for the current user language in Dynamics 365 is set, this translation will be displayed. If there is no label that matches the current user’s language, the first one in the list is displayed.
After you have set up the label, you are able to use your template.
Step 4: Save your template
Before you can use or test your template, please save it. Use the Save template option of the DocumentsCorePack TemplateDesigner in order to publish the template to Dynamics 365.
Step 5: Generate the Document
While generating the document, you will be prompted to select one related record.
Please note: Prompts do not work with the Template Designer, but by using the DocumentsCorePack Server Dialog (Create Document).
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to email@example.com.