Tokens in documentation
Tokens are expressions with an underscore at the beginning.
They are used to automatically generate customized documentation for the selected employee.
Tokens are added to document templates. Their list is available on the tab Extra > Document management >
Generate and import documents > Generate documents from templates button > Tokens button.
![](https://files.helpdocs.io/ze9jsiyj6j/articles/melr7hq8n9/1718386320379/2024-06-14-19-30-02-document-management-pinya-demo-hr.png)
Each token has its own meaning. It expresses the value specified in the employee's profile, which is automatically replaced by the relevant information in the generated document.
Example: Insert a token named _BirthDate in the document template. After the document is generated in the appropriate employee's folder, the token is overwritten by the date of birth value it represents. In the generated document, the date of birth of the selected employee will be displayed instead of the _BirthDate token.
When you hover the cursor over a token in the token list, an explanation of its meaning will be displayed.
![](https://files.helpdocs.io/ze9jsiyj6j/articles/melr7hq8n9/1718387405817/2024-06-14-19-49-29-document-management-pinya-demo-hr.png)
To ensure proper documentation generation, assign tokens to the document template before uploading them to PINYA HR.
![](https://files.helpdocs.io/ze9jsiyj6j/articles/melr7hq8n9/1675086190985/image.png)
If the tokens are inserted correctly into the document, the data will be overwritten according to the data on the employee's card when the document is generated.
![](https://files.helpdocs.io/ze9jsiyj6j/articles/melr7hq8n9/1675086200772/image.png)
Then upload the token document to the appropriate folder on the Templates and source files tab in PINYA HR. Instructions are here .