Announcement

Collapse
No announcement yet.

How to add From to emails in History side panel?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add From to emails in History side panel?

    Emails in History side panel lack any sign of their direction. It's unclear is email incoming or outgoing, so it would be nice to have at least From field here.

    I tried to dig that issue, but didn't get anything useful.

    I found client/modules/crm/src/views/record/panels/history.js with
    Code:
    listLayout: {
                'Email': {
                    rows: [
                        [
                            {name: 'ico', view: 'crm:views/fields/ico'},
                            {name: 'name', link: true}
                        ],
                        [
                            {name: 'status'},
                            {name: 'dateSent'},
                            {name: 'hasAttachment', view: 'views/email/fields/has-attachment'}
                        ]
                    ]
                },
            },
    I could remove some field and it removes field from the side panel.
    However, I can't figure how to add From field of e-mail.
    I could add 'parentType' and some other fields, and they displayed in panel.
    Database records have column from_string, but adding 'fromString' does not work.
    Administration - Entity Manager - Field Manager shows 'fromAddress', 'fromEmailAddress', 'fromName' and 'fromString' - none of them works.

    Does anybody have a solution?

  • #2
    Hi Stanson,

    I test these field using PDF Template in the https://demo.espocrm.com and that work. I believe if you use these field, clear cache, rebuild cache, refresh tab/browser page it should work? You could test with another field to see if your modification is working (at all).

    Code:
    1 {{from}}
    
    2 {{fromName}}
    
    3 {{fromAddress}}
    
    4 {{fromEmailAddressId}}
    
    5 {{fromEmailAddressName}}
    
    6 {{fromString}}
    
    7 {{fromEmailAddress.name}}
    Code:
    1 erica@example.espocrm.com
    2
    
    3
    4 5efaba69b94646f22
    5 erica@example.espocrm.com
    6
    
    7 erica@example.espocrm.com
    So 1, 5 or field name 7 should work?

    Comment


    • Stanson
      Stanson commented
      Editing a comment
      I rebuild all with php rebuild.php - it clears Espo cache and rebuild Espo JS with my changes.
      Also I Ctrl+Shift+R in browser, to reload rebuilt JS.

      None of that names work in Side panel.

  • #3
    Then I would have no idea. It not something you can reproduce on the demo server to test if it a bug or not.

    You already manage to get other field to be display so it not an issue of you "don't know what to do".

    Could there be some other hidden issue such as field type restriction, or character length, or exceed the numbers of field can be shown at one time.

    Comment

    Working...
    X