# Подключение печатной формы к шаблону письма

На примере Служебной поездки.

1. Нужно создать Вид печатной формы с Идентификатором, равным идентификатору печатной формы в конструкторе ПФ\
   ![\_scroll\_external/attachments/image2021-8-25\_17-53-55-779f8d0938138025277f7ef86167b2c3fff4165512a9c9dcb5492151d05f92f3.png](/files/GAjYZGr3r8LfQO1rC8Gp)\
   ![\_scroll\_external/attachments/image2021-8-25\_17-54-21-ecf47131e6a1f17798b589b83e947fd58628e4e77b4d6a372a5bd0e52763d436.png](/files/xNBSgcciqFQMirfaandk)
2. В подключаемых командах типа заявки указать это же название (= Идентификатор)\
   ![\_scroll\_external/attachments/image2021-8-25\_17-55-13-f358d8b17b2a17605e67cce9ff781e5ed6ad83da9c7efef5de1cafb4f952345c.png](/files/Yq1NqaPVujZbnxcf8env)
3. Указать в шаблоне письма, что нужно отправлять присоединенные файлы:\
   ![\_scroll\_external/attachments/image2021-8-25\_17-55-39-19713c600d9d42cb8ef430ece736b419c16876ead3a16b9f82a5dff77e4dc40f.png](/files/Ve6TqoaikOnEudnG4LzE)

**Результат:**

При создании заявки печатная форма в PDF будет прикреплена к заявке, а при отправке письма по шаблону - вложена в письмо.


---

# 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://padocs.empldocs.app/dlya-razrabotchikov/nastroiki-lks/nastroika-zayavok/podklyuchenie-pechatnoi-formy-k-shablonu-pisma.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.
