4

I'm wondering if it's possible to update standard UI settings with a Managed Package? I've created a package dependent on some key settings, so I'd like a Trigger that will look at whether or not these settings are checked - and check them if they are not.

Is this possible?

Thanks!

1 Answer 1

3

No, User Interface settings are not available in apex, nor are they even available through the metadata API. The only configuration option here is to set them through the Salesforce UI.

EDIT: The one lever that you do have around Salesforce configuration in your customer target org is setting up Package and Object Requirements when uploading your package. The packaging engine is smart enough to select what's necessary from your package metadata, but you can add dependencies like Flow, Account Teams, or Multi-Currency if these instance configuration options are essential to the smooth operation of your package. I can't find any settings that are close to what you'd find in User Interface config though, but this is as close as it gets to what your talking about. More info on defining package dependencies here:

Understanding Dependencies

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .