Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

i have created a custom setting with visibility as protected. And now i want it to make the visibility to public. But when i edit the custom setting the visibility option is greyed out.

How could i change it to public?

Do i need to delete the current custom setting and create a new one with the public visibility?

What would if i have lot of data stored in custom setting and at a later stage want it to change to public?

enter image description here

share|improve this question

1 Answer 1

up vote 4 down vote accepted

You can't change the visibility once set. If you need to change it, you must create a new custom setting. If you need to retain the data, you will need to copy the data. If this in a managed package, you can set an install handler script up migrate the data. If it is not a managed package, this setting has no effect, and there is no reason to change the visibility.

share|improve this answer
    
Thanks sfdcfox. I need to delete the current one and going to create a new one. –  Baskaran S Apr 25 at 17:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.