How to Call a Function in a Document or Email Template

How to Call a Function in a Document or Email Template

Function calling in Perfect Doc Studio allows you to dynamically insert values or apply logic within your document templates. 

Steps to Call a Function
1. Navigate to the location in your document where you want to apply a function and type "@".
2. A list of predefined functions will appear, along with an option to create your own custom logic.


3. Select a predefined function from the list or enter your custom logic as required.

Predefined Functions
Perfect Doc Studio provides ready-to-use functions. 
  • current_date: Inserts the date on which the document is generated.
    • Example: If the document is generated on 30 September 2025, the output will be 30/09/2025.
  • current_time: Inserts the exact time when the document is generated.
    • Example: 14:32:10.
  • current_date_time: Inserts both the date and time of document generation.
    • Example: 25/09/2025 14:32:10.

VIDEO DEMO: