You need to sign in to do that
Don't have an account?

How to make Salesforce features optional / mandatory in Managed Package
Hello there,
I have a managed packag where I have enabled SCPL (State and Country Picklist) and I have used field State Code and Coutry Code in my apex classes for populating picklist values.
After creating package when I am trying to upload it in other instance, it is asking to enable SCPL in the destination org. Now, I want to make this thing optional during installation. Is there any way to achieve this?
Thanks in advance.
I have a managed packag where I have enabled SCPL (State and Country Picklist) and I have used field State Code and Coutry Code in my apex classes for populating picklist values.
After creating package when I am trying to upload it in other instance, it is asking to enable SCPL in the destination org. Now, I want to make this thing optional during installation. Is there any way to achieve this?
Thanks in advance.
If you want to do this field Optional so first update your code and make it dynamic.
First check this Country Code and State Code is available for this object or not.
If it is available after that perform any operation on it.
make sure you can use this field with get() and put method.
After making this update you have no need to take care this State and Country Picklist is enable or not.
Thanks
I Really appriciate for it.
Thanks