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:


    • Related Articles

    • Adding Call to Action Buttons in the Email Template

      To insert a button into an email template, navigate to the left-hand menu and select "Let's Design". Then, choose the "Button/Links" option and drag and drop it onto the design area wherever it is needed. STYLING THE BUTTON Next, double-click on the ...
    • Phone Call Template Creation

      CREATING A NEW PHONE CALL TEMPLATE To create a Phone call template, follow these steps: Go to the menu option on the left. Click on Design System, then select "Short Messages". Hover over the "Voice Message" button and click on the plus icon. This ...
    • What is Function Calling?

      Function calling in Perfect Doc Studio is the process of executing predefined text manipulation functions within a template. It allows users to apply custom logic, such as formatting, validation, or conditional rules, on data variables or static ...
    • Understanding the Versioning of Email Template

      Versioning within the design of email templates is an essential process that enables designers and developers to systematically create, test, and deploy email templates in a controlled and organized manner. This process typically involves three ...
    • How to Write Your Own Custom Logic for Function Calling

      Perfect Doc Studio not only provides predefined functions but also allows users to create their own custom logic using function call text manipulations. This enables you to tailor document behavior according to your unique business rules. Steps to ...