No internet connection
  1. Home
  2. General

Email template - including {{ ...}} data

By Florian Jamar @florian
    2024-01-25 16:35:46.255Z

    I tried to set up an e-mail template for our invoice mailings.

    The mail was configured using {{ }} to fetch the data.

    However, when I generated my e-mail, the data didn't appear on the page. I end up with the {{ }} visible.

    How can I make my data appear in the e-mail?

    thanks,

    • 2 replies
    1. M
      Mickael_Silicon @mco
        2024-01-26 08:24:36.092Z

        Hello,

        Here is an example of an email template that uses the _{master.xxx} tags to retrieve the data from the DocType.

        Dear customer,
        Please find attached your invoice _{master.name} in PDF format.
        Thank you in advance.
        Your signature

        The {{ }} tags are not used in Silicon ioi's email templates, they are replaced specifically by _{master.xxx}.

        xxx is the name of the field you want to display.

        Regards,

        Mickael

        1. F
          In reply toflorian:
          Florian Jamar @florian
            2024-01-26 08:41:23.149Z

            Hello Mickael,

            thanks it's working. May I suggest you to change you example under the email template ?

            As example you're using double { } but the real text to put is _{master.XXX} which may confuse once we try by ourself (as non-IT workers).

            Thanks for your help !