Custom field in Email Templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dafnie
    Senior Member
    • Dec 2015
    • 140

    Custom field in Email Templates

    Hi
    I would be nice to have the option to add a custom enum field in Email template.
    The entity EmailTemplate can not be edited in the Entity Manager or Layout manager.

    I think there a many users that a missing the option to be able to filter email templates by a kategori
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    set in application/Espo/Resources/metadata/scopes/EmailTemplate.json "layouts" in true value or do it in upgrade safe way (possible need to set "customizable":true as well, don't remember)

    Comment

    • dafnie
      Senior Member
      • Dec 2015
      • 140

      #3
      Hi
      I've just saw your reply today. Strange I do not receive any notifications about your response from this forum.

      Thank you for your suggestion. It actually worked.
      But when I add a enum field to the detail layout, the "field for variables" changes to a standard text field.
      can you help?
      Last edited by dafnie; 09-21-2017, 07:46 AM.

      Comment


      • tanya
        tanya commented
        Editing a comment
        open application/Espo/Resources/layouts/EmailTemplate/detail.json
        and custom/Espo/Custom/Resources/layouts/EmailTemplate/detail.json

        and check the difference
    • maan@zone.ps
      Junior Member
      • Sep 2017
      • 1

      #4
      I am trying to add a custom field in the email template like this ...



      New Work Order {Quote.name} was Created by {Account.createdBy}

      please refer to your CRM account for your input or/Approval Approval

      {User.name}

      {Account.name}

      {WorkOrder.account.name}

      {WorkOrder.name}



      but only the user name works ... check the sent email :

      New Work Order {Quote.name} was Created by {Account.createdBy}

      please refer to your CRM account for your input or/Approval Approval

      System

      {Account.name}

      {WorkOrder.account.name}

      {WorkOrder.name}


      any ideas .. can anyone helps

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #5
        Hello Maan.

        This comment is not related to topic. Better to create own one.
        But... How do you send an email (with workflow, compose in detail view (which one view), or other way)?

        Comment

        • shalmaxb
          Senior Member
          • Mar 2015
          • 1602

          #6
          Hi, I do not recommend to follow this approach. In my case it did not work but instead screwed up the Email Template layout json-file.

          Comment

          Working...