Contact field (attendees alike) for a custom entity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gribs
    Senior Member
    • May 2015
    • 104

    Contact field (attendees alike) for a custom entity

    Hi

    I created a custom entity, I want to have a field to assign contacts on records (like meetings attendees system), how can I achieve this please?

    thank you
  • yuri
    Member
    • Mar 2014
    • 8467

    #2
    Hi

    You need to create many-to-many relationship with Contact. Then you need to create the field manually in entityDefs
    PHP Code:
     ...
       "fields": {
         "yourRelationshipName": {
          "type": "linkMultiple"
       }
      }
    ... 
    
    :

    This field will be available in layout manager.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • gribs
      Senior Member
      • May 2015
      • 104

      #3
      Hi, thanks ! works fine now

      Comment

      • gribs
        Senior Member
        • May 2015
        • 104

        #4
        Hi,

        I have an issue

        In workflow, I want to receive an email each time that a field on my custom entity records is update

        So I set up the trigger with email etc, But when I select email template with in :

        "Hi, {MyCustomEntity.contactsNames} wants to know {MyCustomEntity.otherfield}..............."

        I see "Hi, {MyCustomEntity.contactsNames} wants to know Other Field..............."

        So, how to obtain the contacts'name in a workflow email ?

        Thank you for your help

        Comment

        Working...