Beginners question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • renrom
    Junior Member
    • Feb 2022
    • 4

    Beginners question

    When i am in de details of an email and i have created my own entity from the type event, how can i this to show up here:


  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    You need to learn how to code a custom button.

    There is a few guide and video guide on how to create a general button, have a look through here: search for "button"
    https://github.com/o-data/EspoCRM-Le...ign/wiki/Home/

    Comment

    • renrom
      Junior Member
      • Feb 2022
      • 4

      #3
      Check! i have followed this guide: How to create dropdown button which will let user to create new task with pre-filled fields - YouTube and that is exactly what i wanted! i have my button and i copy over fields from the email.

      One other quiestion tho. Are attachements fields handled different? I want to copy over the attachments to my custom entity to a multi attachment field and i tried copy over the field with is, but the attachments arent copied. I do get copied the contact name and the subject.:

      attributes.fotos = this.model.get('attachements');
      attributes.fotosIds = this.model.get('attachementIds');

      Comment

      • renrom
        Junior Member
        • Feb 2022
        • 4

        #4
        Ok, found it. besides the typo i made... i added this:

        attributes.fotosIds = this.model.get('attachmentsIds');
        attributes.fotosNames = this.model.get('attachmentsNames');
        attributes.fotosTypes = this.model.get('attachmentsTypes');

        Now the attachments links comes over to my entity.

        Comment


        • esforim
          esforim commented
          Editing a comment
          Brave man. I'm still a little shy with these coding so it been on a long term procrastination. Gonna add this thread to the 'wiki'.
      Working...