# Export record to PDF

Today, I came back to the old functionality - <mark style="color:purple;">**Export to PDF**</mark>.

Previously, this feature only supported out-of-the-box entities like **Account**, **Contact**, **Lead**, **Opportunity**, **Quote**, **Order**, and **Invoice** but did not extend to <mark style="color:green;">**Custom entities**</mark><mark style="color:purple;">**.**</mark>

It's gratifying to see that this functionality has <mark style="color:green;">**now**</mark> been <mark style="color:green;">**implemented**</mark> for the <mark style="color:green;">**Custom Entity**</mark>**.**

<figure><img src="/files/LbmBDh2h8IuhrHLki3yE" alt=""><figcaption><p>Configure "Export to PDF" for entities</p></figcaption></figure>

{% hint style="success" %}
The **Export to PDF** functionality is available on D365 for Sales.

For configuration, Open the **Sales Hub >** move to **App Setting** area > **Productivity tools.** Then choose the **"Conver to PDF"** and configure these entities to apply this functionality.
{% endhint %}

## Scenario: Create a Device Card

My case: I must create a Device Card to show Device information. The user will export it to PDF and send it to the customer.

I have a custom entity called **Device** that stores the device information of customers.

**Involve Steps**

<figure><img src="/files/dfuBwxQ4TOBdWj1rZ7R8" alt=""><figcaption><p>Configure Export to PDF</p></figcaption></figure>

### 1. Configure Word Template - "Device Card"

My sample Word Template "Device Card" is below.

<figure><img src="/files/k5WS02zBp8oOmaSby2R5" alt=""><figcaption><p>Sample "Device Card" - Thank you</p></figcaption></figure>

### 2. Enable "Export to PDF" for entity Device

Configure in **Sales Hub > App Setting >** under **Productivity Tools**, click menu **"Convert to PDF"** then **select entity Device** > click **Save** to enable.

<figure><img src="/files/LbmBDh2h8IuhrHLki3yE" alt=""><figcaption><p>Enable function for entity "Device"</p></figcaption></figure>

### **3. Check the "Export to PDF" button on the Device entity:**

<figure><img src="/files/PqdKUxxiePRSWRvazyeU" alt=""><figcaption><p>Button "Export to PDF" is visible</p></figcaption></figure>

Ya.. here, I completed enabling the functionality "Export to PDF" for the custom entity "Device". :tada:

<figure><img src="/files/47anj9ow34IxBKBakZrs" alt=""><figcaption><p>Screenshot - Export to PDF</p></figcaption></figure>

<mark style="background-color:green;">**Live Testing on Sales Hub:**</mark>

<figure><img src="/files/vbxB1WGUbHBfo0qmfR7N" alt=""><figcaption><p>Live check - Export to PDF</p></figcaption></figure>

## Send email "Device Card.pdf" to customer

In "Export to PDF" screen > click on **\[Email]** icon to send this Device Card.pdf file to the customer via email.

* The Email record will be created
* This Email will be shown on the Timeline are of the customer.

<figure><img src="/files/E0y8yAI3gpeoOoiaX0Rz" alt=""><figcaption><p>Send email on "Export to PDF"</p></figcaption></figure>

Check **Email** record on Timeline area of **Contact - John John**

<figure><img src="/files/G36YkLVlxEuoH17MBouq" alt=""><figcaption><p>Email Record on Contact</p></figcaption></figure>

Hoping well. :heart\_hands:

Thank you for your reading.\
\&#xNAN;**\[NTD]yns.Asia**\ <mark style="color:red;">...</mark>[<mark style="color:red;">invite me a cup.</mark>](https://ko-fi.com/ntdyns/?ref=qr\&amp;v=2) :coffee: Thank you. :heart:


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dyns.ntd.asia/power-dynamics/d365-ce/sales/export-record-to-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
