Step-by-Step: How to set up lookup-prompts for relations
This blog article covers a step-by-step example of how to set up user-prompts in DocumentsCorePack Template Designer.
With this special version of the prompts feature you have the possibility to select one or multiple related records while generating the document.
The following steps contain a description of how to set up such prompts in your templates.
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 “Edit”.
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“.
Before you can create the prompt you have to select the base behavior of the relation.
By selecting this option, all related records will be displayed and there is no need for a prompt.
In this case, you have to select one row instead of displaying all related records.
Here, you have to select one or multiple rows instead of displaying all related records.
Whatever lookup option matches with your needs the next step is to define a label.
To do so, please 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.
While generating the document you will be prompted to select one related record.
Prompts do not work with the Template Designer, only by using the DocumentsCorePack Server Dialog (“Create Document”).
reworkneede… retest functionality