Custom Field Type Visible in Formula but Not Available in Workflow Conditions/Actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ashif Malayil
    Senior Member
    • Dec 2023
    • 250

    #1

    Custom Field Type Visible in Formula but Not Available in Workflow Conditions/Actions

    Hello Team,

    I have developed a custom field type in EspoCRM. The field is working as expected at the entity level, and I am able to successfully access and use it within the Formula and workflow Actions section.

    However, the same custom field type is not appearing in the Workflow, specifically under:
    • Workflow Conditions
    Could you please clarify:
    1. Are there any additional definitions, metadata, or flags required to make a custom field type available in Workflow Conditions?
    If any example or documentation is available for enabling custom field types in workflows, that would be very helpful.

    Thank you in advance for your support.
    Last edited by Ashif Malayil; 01-14-2026, 01:15 PM.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9570

    #2
    There are some parameters in metadata > entityDefs > Workflow. But these parameter were planned to be moved to other place in future.
    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

    • Ashif Malayil
      Senior Member
      • Dec 2023
      • 250

      #3
      Hi yuri ,

      Is this the file path you are referring to?

      custom/Espo/Modules/Advanced/Resources/metadata/entityDefs/Workflow.json

      I can see the following section there:

      "conditionFieldTypes": { "varchar": "varchar", ... "urlMultiple": "array" }

      If I add my custom field type to this list, will it then appear in the Workflow Conditions section?

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9570

        #4
        I think so.

        Note that this parameters likely to be moved to metadata > app soon, so you you will need to fix the customizations after upgrade.
        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

        • Ashif Malayil
          Senior Member
          • Dec 2023
          • 250

          #5
          I am able to see the field in the Conditions section now, but it is not showing filter options such as Is Empty, Is Not Empty, Changed, etc. Do i need to define these somewhere else?

          Please refer to the image below.

          Click image for larger version

Name:	image.png
Views:	0
Size:	12.5 KB
ID:	123985

          Comment

          • yuri
            EspoCRM product developer
            • Mar 2014
            • 9570

            #6
            I think you need to map it some existing type. E.g. to the varchar. It's not possible to have a custom view in the conditions.
            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

            • Ashif Malayil
              Senior Member
              • Dec 2023
              • 250

              #7
              Thanks for your support, Yuri. It worked with the existing varchar type.

              Comment

              Working...