Announcement

Collapse
No announcement yet.

Create values and labels in bulk for Multi-Enum field, instead of line by line

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

  • Create values and labels in bulk for Multi-Enum field, instead of line by line

    Hi there,

    I have an multi enum field where I should add 160 options.... Is it possible to do this in bulk? Or with an import?
    Line by line is too time consuming and has high risk of entering wrong or skipping values....

    See below screenshot.

    Click image for larger version

Name:	image.png
Views:	87
Size:	55.3 KB
ID:	103115

    Hope hearing from you!​

  • #2
    Hi bewisesolutions,

    - Go to your_instance_name/custom/Espo/Custom/Resources/metadata/entityDefs/your_entity_name.json.
    - Find the name of your Multi-Enum field (can be done with ctrl+f).
    - Add the required Options in the desired order (screenshot 1).
    - Save the changes and make Rebuild via CLI: https://docs.espocrm.com/administrat...mands/#rebuild.
    - After refreshing the page in the Entity (can be done by f5), you will have new Options available (screenshot 2).
    Attached Files
    Last edited by victor; 02-27-2024, 04:35 PM.

    Comment


    • #3
      Hi victor,

      Thank for your response, this will certainly help and improve my implementation time.
      Is it also possible to create the labels in such manner?

      Kind regards Emiel

      Comment


      • #4
        Originally posted by bewisesolutions View Post
        Is it also possible to create the labels in such manner?
        French is taken as an example. The same principle works for others (screenshot 1):
        - In your_instance_name/custom/Espo/Custom/Resources/i18n/fr_FR/your_entity_name.json specify the required Label.
        Code:
        {
            "fields": {
                "testMultiEnum": "Test Multi-Enum FR"
            }
        }​
        The field must be created in advance (screenshot 2).
        - Make Rebuild via CLI.

        This method is not recommended, I advise you to create fields and their Labels via GUI.
        Attached Files

        Comment

        Working...
        X