Use Word Templates to Generate Standard Customer Correspondence in AX (Dynamics 365 for operation)

Hi,

Here I'm going to create Word Template which fetches data from AX. i.e. Use Word Templates to Generate Standard Word Correspondence

It has 3 step process.

1. Create Data Entity

2. Create a Word Template

3. Upload a Word Template

4. Use the template in AX Form


1. Create Public Data Entity  follow the link (Create Data Entity).

Here i'm using CustCustomerEntity Public Data Entity.

you can access your data entity by (Access Data Entity)

your org URL/data/PublicCollectionName

https://usnconeboxax1aos.cloud.onebox.dynamics.com/data/TESTCustomerDatas

2. Create Word Template.

The Microsoft Dynamics App for Office can be run in Word to enable the creation of templates that can then be used for document generation.
  1. Add a trusted catalog that points to the file share that contains the Microsoft Dynamics App manifest:
    1. In Word, click File > Options.
    2. Click Trust Center > Trust Center Settings.
    3. Click Trusted Add-in Catalogs.
    4. In the Catalog URL field, enter the file share location of the manifest.
    5. Click Add catalog.
    6. Click OK.
    7. Click OK.
    8. Restart Word.
  2. Add the Microsoft Dynamics App to a document:
    1. In Word, click Insert > My Add-ins > Shared Folder > Microsoft Dynamics.
    2. Click Insert.
    3. In the app, click Add server information.
    4. In the Server URL field, enter the start of the URL (protocol + hostname). For example, enter https://usnconeboxax1aos.cloud.onebox.dynamics.com/.
    5. Click OK.
    6. Click Yes to apply the settings change and reload the app.
  3. Sign in to the app:
    1. Click Sign In. The Azure Active Directory sign-in screen should provide a list of credentials. If you encounter an error, force a sign-out (by using the sign-out link in the lower-right corner of the app), and then sign in again.
    2. Select the appropriate account, or click Use another account.
    3. Enter the credentials for that Microsoft Dynamics AX environment, and then click Sign in.
  4. Load the template designer applet:
    1. After sign-in, click Load applets.
    2. Select Template Designer.
    3. Click OK.
    4. Click Yes to confirm.
    5. Click OK to close the settings page. The latest OData metadata is loaded.
5. Select data entity and select fields which you want in word template and click on Done. Word Template is ready.




3. Upload a Word Template
  1. Upload a template:
    1. In Dynamics 365 for Operations, navigate to Common > Common > Office integration > Document templates. Alternatively, search for the page.
    2. Click New.
    3. Click Browse.
    4. In the dialog box, select a previously created template, and then click Open.
      Note that the Root data entity is obtained from the template and appears near the bottom of the dialog box.
    5. Click OK.
    6. Scroll down the list of templates to confirm that the template was added.
    7. Optional: If the template should not be filtered to the user’s current record, clear the Apply current record filter check box.
    8. Optional: If the template should not be filtered to the user’s current company, clear the Apply company filter check box.
4. Use the template in AX Form
  1. Use the uploaded template for document generation:
    1. Navigate to a page that shares the same root data source as the template’s root data entity. For > Customers > Customer.
    2. Click Open in Microsoft Office > Export to Word, and click the template.
    3. Download and open the document that is generated.



Custom build Word template ready for selected customer.

Reference.

AX 7

AX 2012
https://timsaxblog.wordpress.com/2015/07/07/document-template-libraries-for-dynamics-ax-2012/
https://technet.microsoft.com/en-us/library/aa548928.aspx
https://dynamicsaxtipoftheday.com/2014/01/13/use-word-templates-to-generate-standard-customer-correspondence/











Comments

Post a Comment