Question

current date in email and report template

Hi,

We have multiple email templates, and multiple report word templates. We are trying to insert the current date into the templates, so that when the template generates an email/report, the date generated is inserted into the end result.

Is there a macro available to achieve this? Or any way to do it?

I searched the community and could find no solution that covered both

Please forgive my naitivity, as I am quite new to this.

Like 0

Like

3 comments

Hello!

Unfortunately, the current date macros can't be set up through the standard word macros. To correctly set up the current date macros you can use the HOW TO CREATE MACROS FOR A CUSTOM REPORT IN WORD guide:

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/freedom-ui/ms-word/examples/create-ms-word-report-custom-macros

that describes the process of macros creation for system settings like "Current user" or "Current date". Our R&D team is currently working on the implementation of this feature as a basic one for printables in further releases. 

Valeriia,

Hi, can you please comment also on the email template side of this question?

Hello,

To do this, please create a process parameter as shown in the screenshots below:

Screenshot 1 Screenshot 2

Next, use this parameter as a macro in your email template:

Template Screenshot 1 Template Screenshot 2

This setup will ensure that the email includes the current date and time at the moment it is sent.

Best regards,
Tomasz

Show all comments