How to use DURATION fieldtype in my object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MaTT
    Junior Member
    • Jun 2017
    • 19

    #1

    How to use DURATION fieldtype in my object

    Can't find type DURATION in list of types. Please help
  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hello
    Only manually you can add it
    open application/Espo/Modules/Crm/Resources/metadata/entityDefs/Call.json, copy duration field defs, and paste it in own entityDefs. Check 'start' and end 'options', fix select option

    Comment

    • MaTT
      Junior Member
      • Jun 2017
      • 19

      #3
      Thanks for your answer, it is not good solution for my task.
      I need simple time field, like a currency field with "min" text after value of this.

      Comment

      • tanya
        Senior Member
        • Jun 2014
        • 4308

        #4
        In general, duration is notStorable field.
        you an create int field and set dateEnd calculation in formula

        Comment

        • Knetch
          Junior Member
          • Jul 2025
          • 17

          #5
          Originally posted by tanya
          Hello
          Only manually you can add it
          open application/Espo/Modules/Crm/Resources/metadata/entityDefs/Call.json, copy duration field defs, and paste it in own entityDefs. Check 'start' and end 'options', fix select option
          I did it, but the task still not has duration. Can you help me?

          Comment

          • shalmaxb
            Senior Member
            • Mar 2015
            • 1787

            #6
            Please tell us, between which fields you want to calculate the duration. Also the unit: minutes, hours?

            Comment

            • Knetch
              Junior Member
              • Jul 2025
              • 17

              #7
              “Hi, and thanks for your support.
              I’ve managed to add the duration field, but I’d like the calendar to treat this entity the same way it handles calls and meetings.
              Is there anything specific I need to configure to make it appear as a timed event instead of an all-day item?”

              Comment

              Working...