Thu, 02/25/2021 - 13:45 By Fabian Kalchofner

D365 Export to PDF

Having Word templates is great, but directly creating PDF files is even better.

We already presented you a tutorial, how you could create this with code: Dataverse Custom API Preview (Dynamics 365 CDS).

 

In this trick, I show you, how you can enable this feature for your users.

 

Open Sales Hub App

The configuration is done in the Sales Hub App, but can also be done within any other app:

https://<organization url>/main.aspx?pagetype=control&controlName=MscrmControls.FieldControls.CCFadminsettings&data=%7B%22id%22%3A%22enhance_pdf_generation%22%7D

If you have opened it in the Sales Hub App, switch to the "App Settings" area.

D365 Export to PDF

When you have opened the "App Settings", you will find the settings under "Settings" -> "Overview" -> "Convert to PDF".

D365 Export to PDF

 

Add Tables

You can now search for tables and enable them for PDF creation:

Enable PDF Generation

 

View it in action

As I enabled PDF creation for contacts, I'll open a contact and see, that there is a new button:

Export to PDF button

If you click on it, the PDF generation dialog is opened. You'll see all related Word templates and a preview of the generated document. In the command bar, you'll have several options:

  • Download: Simply downloads the file
  • Email: Creates a new CRM email and will attach the PDF
  • Save to Dynamics: Add the created PDF as note attachment
  • Save to SharePoint: Add the created PDF to SharePoint document location associated with the current record.

The SharePoint option is only available, if SharePoint integration is enabled for the current table. If SharePoint integration is enabled, the "Save to Dynamics" option will not be available.

Export to PDF dialog

 

If you didn't create a Word template yet, you'll receive an error message:

D365 Export to PDF

D365 Export to PDF

Add new comment

Image CAPTCHA
Enter the characters shown in the image.