logo

NJP

Restrict duplicates in Multi-row Variable Set without script # Unique Attribute

New article articles in ServiceNow Community · Dec 09, 2024 · article

Oob feature after Quebec releases

Unique: Option to disallow duplicate values for this variable within the multi-row variable set.

This field appears only for variable created in a multi-row variable set.

This feature applicable only in now platform, service portal, variable editor in Agent workspace

1) Check the checkbox Unique for multi-row variable checked and save.

IMG_6656.jpeg

2) Verify duplicate entries in the portal to ensure it restricts duplicate text, numbers, and special characters.

IMG_6660.jpeg

3)If the ‘Unique’ field is not available on the form, ensure it is added to the form level in the item_option_new table, as it is restricted in the list view due to the list edit ACL mentioned below you will not update to true from list view.

IMG_6657.jpeg

View original source

https://www.servicenow.com/community/developer-articles/restrict-duplicates-in-multi-row-variable-set-without-script/ta-p/3122809