Skip to main content

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?

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