• Deutsch
  • English
  • Anmeldung OTOBO Community
+49 (0)9427 68 39 000
OTOBO
  • SOFTWARE
    • Software | Überblick
    • IT Service Management
    • Customer Service Management
    • Enterprise Service Management
    • Demo
    • Download
    • Dokumentation
  • SERVICES
    • Überblick Services
    • Beratung
    • Training
    • Entwicklung
    • OTRS Migration zu OTOBO
    • Support
    • Managed Service
    • Support-Portal
  • UNTERNEHMEN
    • Über uns
    • Karriere
    • Partner
    • Kontakt
    • Newsletter
  • RESSOURCEN
  • COMMUNITY
    • Open Source
    • Community Forum
    • Download
    • Dokumentation
    • OTOBO übersetzen
  • Click to open the search input field Click to open the search input field Suche
  • Menü Menü

Schlagwörter: Add new column, CustomerCompany, Dynamic Field

Ansicht von 4 Antwort-Threads
  • Autor
    Beiträge
    • 15. November 2020 um 19:22 Uhr - Views: 2569 #10032
      Syoxx
      Teilnehmer

        I have some problems with the dynamic field feature on customer companies. For example i would like to add a new dynamic field called „customer_internal_id“ to the customer company informations. Unfortunately i don’t find any option to add this dynamic field to the customer company informations. I already did some research on the internet and read several times that this isn´t possible anymore.

        Can someone tell me how to do it or what i am doing wrong?

      • 16. November 2020 um 10:25 Uhr #10035
        Stefan Rother
        Administrator

          Hi Syoxx,

          That’s not true, I’m sure it’s possible. ;)

          You need to add the dynamic field info to the $Self->{CustomerCompany} mapping in Kernel/Config.pm. If this option does not already exist in Kernel/Config.pm, you need copy the entire option from Kernel/Config/Defaults.pm to Kernel/Config.pm:

              $Self->{CustomerCompany} = {

                  Name   => Translatable(‚Database Backend‘),

                  Module => ‚Kernel::System::CustomerCompany::DB‘,

          .. More Content …

                  Map => [

                      # Info about dynamic fields:

                      #

                      # Dynamic Fields of type CustomerCompany can be used within the mapping (see example below).

                      # The given storage (third column) then can also be used within the following configurations (see above):

                      # CustomerCompanySearchFields, CustomerCompanyListFields

                      #

                      # Note that the columns ‚frontend‘ and ‚readonly‘ will be ignored for dynamic fields.

                      # var, frontend, storage, shown (1=always,2=lite), required, storage-type, http-link, readonly

                      [ ‚CustomerID‘,             ‚CustomerID‘, ‚customer_id‘, 0, 1, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyName‘,    ‚Customer‘,   ’name‘,        1, 1, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyStreet‘,  ‚Street‘,     ’street‘,      1, 0, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyZIP‘,     ‚Zip‘,        ‚zip‘,         1, 0, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyCity‘,    ‚City‘,       ‚city‘,        1, 0, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyCountry‘, ‚Country‘,    ‚country‘,     1, 0, ‚var‘, “, 0 ],

                      [ ‚CustomerCompanyURL‘,     ‚URL‘,        ‚url‘,         1, 0, ‚var‘, ‚[% Data.CustomerCompanyURL | html %]‘, 0 ],

                      [ ‚CustomerCompanyComment‘, ‚Comment‘,    ‚comments‘,    1, 0, ‚var‘, “, 0 ],

                      [ ‚ValidID‘,                ‚Valid‘,      ‚valid_id‘,    0, 1, ‚int‘, “, 0 ],

                      # Dynamic field example

          #            [ ‚DynamicField_Name_Y‘, undef, ‚Name_Y‘, 0, 0, ‚dynamic_field‘, undef, 0 ],

                  ],

              };

           

          After that you are able to configure your dynamic fields. Please add the following information to the mapping for each field:

                      [ ‚DynamicField_Name_Y‘, undef, ‚Name_Y‘, 0, 0, ‚dynamic_field‘, undef, 0 ],

           

          Another possibility is to extend the database table and don’t use a dynamic field:

          For MySQL or MariaDB:

          root> mysql -uroot otrs

          root> ALTER TABLE customercompany add NameOfNewColumn VARCHAR(255);

          After that add a new value to the mapping above:

            [ ‚CustomerCompanyNameOfNewColumn‘, ‚LabelOfNewColumn‘,    ‚NameOfNewColumn‘,    1, 0, ‚var‘, “, 0 ],

          I hope I could help. Please do not hesitate to contact us if you have any questions.

          Best regards from Germany,

          Stefan

          Team OTOBO

        • 16. November 2020 um 23:21 Uhr #10062
          Syoxx
          Teilnehmer

            Hi Stefan,

            thank you so much for your help! It works perfectly.

            Best regards,
            Syoxx

          • 17. November 2020 um 5:01 Uhr #10063
            Stefan Rother
            Administrator

              You’re welcome, have fun with OTOBO!

            • 22. November 2020 um 18:16 Uhr #10181
              Syoxx
              Teilnehmer

                Hi Stefan,

                I’ve tried around with dynamic fields in the last few days but got another problem. I want to add a dropdown field to each customer where i can select the purchased products by the customer. So that I have the opportunity to search for this field and see all customers with product A oder product B.

                I successfully created a new field with the type „Multiselect“. This field is shown for each customer but the dropdown menu isn´t working. I´am only able to write numbers in it (because data type is integer). Can you tell me what i’m doing wrong?

                Best regards,
                Syoxx

                • 11. Februar 2026 um 12:38 Uhr #39502
                  Philipp Nitsche
                  Teilnehmer

                    Hi Syoxx,

                    did you find a solution for the Multiselect field type to define another datatype?

              • Autor
                Beiträge
              Ansicht von 4 Antwort-Threads
              • Du musst angemeldet sein, um auf dieses Thema antworten zu können.

              Foren durchsuchen

              Anmeldung

              Anmeldung

              Konto erstellen
              Passwort vergessen?

              Login via Social

              Profil

              Bitte vervollständigen Sie nach der Registrierung Ihr Profil, das vereinfacht die spätere Kommunikation enorm. Ihre Profileinstellung finden Sie, wenn Sie auf Ihr Avatarbild klicken.

              Sie können Ihren Avatar ändern, indem Sie sich mit Ihrer E-Mail-Adresse unter gravatar.com registrieren.

              Letzte Aktivitäten

              • FAQ: kaputtes Copy & Paste von Bildern zwischen Artikeln
              • Dynamische Felder in AgentTicketNote mit ACL verstecken
              • Benachrichtigung „Ticket wurde mir entzogen“ möglich?
              • Statistik Anzahl Tickets pro Agent
              • Docker: Ändern des redis Hosts

              Unternehmen

              Über uns
              Karriere
              Stellenbörse
              Partner werden
              Kontakt
              Newsletter

              OTOBO | Simplify work and create exceptional service experiences.

              Die Source Code Owner und Maintainer hinter OTOBO.

              Software

              Service Management-Plattform
              OTOBO Demo
              OTOBO Download
              OTOBO Dokumentation

              Security-Problem melden:
              security@otobo.org

              Services

              Support-Portal
              Beratung
              Training
              Support
              Managed Services
              Erweiterung
              OTRS Migration
              Partner finden

              Community

              Open Source
              Community Forum
              Mitmachen
              OTOBO Developer
              OTOBO@GitHub

              © 2026 Rother OSS GmbH | All rights reserved.
              • Cookie-Einstellungen
              • Impressum
              • Datenschutz
              • Haftungsausschluss
              Nach oben scrollen Nach oben scrollen Nach oben scrollen