Skip to main content
Solved

ONE MMM custom property to change to non-mandatory

  • March 26, 2024
  • 1 reply
  • 16 views

may_kwok
Star Blazer L3
Forum|alt.badge.img+4

We are on 14.5.1.

We have a custom property on our terms, that currently is mandatory.

We want to find out if we can change it to non-mandatory.

 

When I click on edit on the property, it only allows me to edit the name.

Is it possible to turn off the mandatory flag?

Best answer by anna.spakova

Hello @maykwok_hamilton,

I believe you could use the Upgrade command to remove the constraint. Are you able to search in the history of your metadata changes to find what name it was given? If not, I can ask engineering, what is the ID for the mandatory constraint or try it in my environment.

Example of this specific upgrade command:

{

  name: "Remove uniqueness check for terms",

  description: "Remove uniqueness check for term entity using name",

  operations: [

    {

        name: "RemoveConstraint",

        args: {

            targetNode: "term",

            constraintId: "TERM_UNIQUENESS"

            }

   }

]

}

The targetNode can be also accompanied by the targetProperty, which will probably be needed for your use case.

Do you know how to apply the Upgrade commands or do you need more guidelines?

Kind regards,

Anna

View original

anna.spakova
Ataccamer
Forum|alt.badge.img+3

Hello @maykwok_hamilton,

I believe you could use the Upgrade command to remove the constraint. Are you able to search in the history of your metadata changes to find what name it was given? If not, I can ask engineering, what is the ID for the mandatory constraint or try it in my environment.

Example of this specific upgrade command:

{

  name: "Remove uniqueness check for terms",

  description: "Remove uniqueness check for term entity using name",

  operations: [

    {

        name: "RemoveConstraint",

        args: {

            targetNode: "term",

            constraintId: "TERM_UNIQUENESS"

            }

   }

]

}

The targetNode can be also accompanied by the targetProperty, which will probably be needed for your use case.

Do you know how to apply the Upgrade commands or do you need more guidelines?

Kind regards,

Anna


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings