v.24.10New Feature

New function getSettingOrDefault added to improve default value retrieval

A new function getSettingOrDefault added to return the default value and avoid exception if a custom setting is not found in the current profile. #69917 (Shankar).
Introduces the getSettingOrDefault function to retrieve a setting's value or return its default without throwing an exception if the setting is missing.

Why it matters

This feature solves the issue where querying a custom setting that is not present in the current profile results in an exception. By using getSettingOrDefault, users can safely access settings with a fallback to their default values, improving robustness and avoiding errors in query execution or configuration checks.

How to use it

Use the getSettingOrDefault function within your queries or configuration scripts to fetch the value of a setting. If the setting is not found, the function returns the default value instead of raising an exception, enabling smoother handling of optional or custom settings.