> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/click2export/configuration/automation/word-template-workflow.md).

# Word Template Workflow

Click2Export enables exporting of Dynamics CRM Word Templates using Click2Export workflow.&#x20;

Follow the steps given below to export word templates using workflow:

* Navigate to **Settings > Processes** and click on ‘**New**’ to create a new workflow.

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M815dG3xQhAf0jwSVmp%2F-M816YQPvsBPYfAlqRXd%2F1.png?alt=media\&token=9bdc508a-0989-452c-ad13-b8c487ade074)

* Enter the ‘**Process Name**’, select the ‘**Category**’ as ‘**Workflow**’ and ‘**Entity**’ for which you want to create this workflow. Click on ‘**OK**’.

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M815dG3xQhAf0jwSVmp%2F-M816scxggCGuZllwYdn%2F2.png?alt=media\&token=60aa9d43-2615-4d31-a62f-33bf0e92ed90)

* Here you can select whether you want the Workflow to be On Demand or trigger on a change of Options for Automatic Processes.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FJhspPaZ2X9ESxbT6b8Ih%2F27.2%20pending.PNG?alt=media&amp;token=f47eddcd-3f29-41b2-af90-287aed9f7ffa" alt=""><figcaption></figcaption></figure>

* First user needs to click on **‘Add Step’** and add **Perform Action** step that is predefined by Microsoft to select the appropriate **Action** for required word template. Select **Action** as **SetWordTemplate** option and **Entity** as **None** (global).&#x20;

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M815dG3xQhAf0jwSVmp%2F-M817biBeuohGhuBQDv6%2F4.png?alt=media\&token=26ac75c5-f3a0-47db-b1a6-300fd93ecbef)

* Now click on **‘Set Properties’** of **Perform Action** step and select the required Word Template in **SelectedTemplate** section and required **Entity** in **Target** section. In order to select the required entity in Target section, it should have **Business Process Flows** ticked in the entity settings like shown below:&#x20;

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-MXH--ZkTasIJVansi9d%2F-MXH5cmnDGFUQLbDsZLQ%2FC2E_Word%20Workflow%20-%20Copy.png?alt=media\&token=ea37ddff-f35e-4559-a288-059a6f577204)

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M89J3rdIfDRWY6mV3oa%2F-M89K2sHHQ7NxSwfdID4%2F5.png?alt=media\&token=eb5320db-ea7d-466d-bfe4-9ed9263806dd)

* Click2Export ships with one workflow assembly namely ‘**Inogic.Click2Export.ExportWord.ExportWord2PDF**’. This step is required to call the workflow for performing the selected action.
* Now click on ‘Set Properties’ for **Inogic.Click2Export.ExportWord.ExportWord2PDF**&#x20;

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M89J3rdIfDRWY6mV3oa%2F-M89KZ-rthWbqHHR4bC8%2F6.png?alt=media\&token=ba4e413d-61fb-4faf-ba3b-88323aff6be3)

* Once the properties window opens, fill in the correct details as explained below:

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FWWm3hsW3CQI2pSwWFsl1%2F27.1%20pending.PNG?alt=media&amp;token=737e637a-91c7-414c-be53-a05489dbdea8" alt=""><figcaption></figcaption></figure>

**Document Template:** Select the document that needs to be converted to PDF.

**CRM Report Template:** This will be the Report Template that has been created for the Document Template selected above.

**Attach as a Notes:** If marked as True, then it will attach the converted PDF against the record as a Note else it will not.

**Attach to an Email:** If marked as True, then it will attach the converted PDF in an email. The **Email Recipients** and the **Sender** would be selected based off the **Email Configuration** done on the selected **CRM Report Template**.

**Upload to SharePoint:** If marked as True, the converted file will be uploaded against the record’s respective SharePoint folder.

* Now ’**Save**’  and then ‘**Activate**’ the process.
* You can now see the workflow in ‘**My Processes**’.

![](https://272130504-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M0QoyqUVI8_HaZ9FOSL%2F-M89J3rdIfDRWY6mV3oa%2F-M89LQefU2JqSC8OE5t8%2F8.png?alt=media\&token=27c89c58-9831-41b7-89b5-fb93216597cf)

{% hint style="success" %}
For further queries, reach out to us at <crm@inogic.com>
{% endhint %}
