What are look-up prompts
With this special version of the prompts feature you have the possibility to select one or multiple related records while generating the document. This blog article covers a step-by-step example of how to set up user-prompts in DocumentsCorePack Template Designer.
The following steps contain a description of how to set up such prompts in your templates.
Step 1: Open the relationship
This special version of the prompt is defined within the relationship designer. To access it, please navigate to
❷ “Insert MailMerge Fields” to open the DocumentsCorePack Task pane. Go to
❸ “Additional” and select
Within the “Records to show“ section, you can find three options.
❶ “Show all records“,
❷ “Show a lookup window to select a single row“ and
❸ “Show a lookup window to select multiple rows“.
Step 2: Define the lookup prompt
Before you can create the prompt you have to 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 one or 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, only by using the DocumentsCorePack Server Dialog (“Create Document”).
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to firstname.lastname@example.org.