Solved

ONE MMM custom property to change to non-mandatory

  • 26 March 2024
  • 1 reply
  • 11 views

Userlevel 2
Badge +2

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?

icon

Best answer by anna.spakova 27 March 2024, 10:17

View original

1 reply

Userlevel 5
Badge +8

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