function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Pasan   EeriyagamaPasan Eeriyagama 

How to change existing custom field in a managed package to unique?

We Need to change existing custom field in a managed package to a unique field. But seems the option is disabled.

User-added image

Any workaround for this please. Thanks.
Best Answer chosen by Pasan Eeriyagama
Pasan   EeriyagamaPasan Eeriyagama
Found a way, have a trigger to enforce the uniqueness. This is the best workaround to overcome rather than informing users substitute their references to new field. 

All Answers

Raj VakatiRaj Vakati
Hi Pasan , 
You can't do it. I would say create your own custom unique field and update the data with code or declarativity way.
Pasan   EeriyagamaPasan Eeriyagama
Found a way, have a trigger to enforce the uniqueness. This is the best workaround to overcome rather than informing users substitute their references to new field. 
This was selected as the best answer