+ 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