This article outlines how to concatenate different documents in one single document in your Microsoft Dynamics 365 DocumentsCorePack Online.
Using the concatenate step, we can combine two or more documents and can thus create – independent of file format or properties of the document – a single Word document that contains all concatenated documents. If you haven’t created a workflow in Microsoft Dynamics 365 Online yet, please have a look at this article first.
You can find your created workflow in your Dynamics 365 > Settings > Processes:
Remember how you named your Workflow, look for it in “My Processes” and click on it to open it.
Please Note: To start concatenating your documents you have to edit the process and therefore it is necessary to deactivate it by confirming the [Deactivate]–Button.
Now your process is in “Draft”-version and editable. Double Click it.
This Information window pops up. You can see the two steps:
- In this step a MultiPart XML is created. You can name this process, but it is not mandatory. Click the [Set Properties]-button.
- In the second step you can see that an AutoMergeWorkingItem is created using the result from step one.
“Set Custom Step Input Properties”-window opens.
- You can see that the first template is already set. So, let´s set the second template which we want to concatenate to the first one.
- Click in the input field of the second template as highlighted in the screen. The “Lookup”-dialog opens, and you can look for the template, you want to concatenate.
Now set the Entity Record URL 2 by using the “Form Assistant” on the right.
- Look for your “Entity” (in this example it is “Account”)
- and for “Record URL (Dynamic)”, add it and the press the [OK]-button.
Now we are ready to choose the “Concatenate Type”. For the first template it is not necessary to select a Concatenate Type because we want to chain the second one to the first one. We use “Doc” as ConcatenateTyp 2. You can simply type it in the input field. What to choose for the Concatenate Type can you learn here in this overview about the new concatenate syntax. Don´t forget to [Save and Close].
Please Note: Keep in mind that you deactivated your process to edit it, so please activate it again.
That’s it! We appreciate your feedback! Please share your thoughts by sending an email to firstname.lastname@example.org.