Sündmused
Power BI DataVizi maailmameistrivõistlused
14. veebr, 16 - 31. märts, 16
Nelja võimalusega siseneda, võiksite võita konverentsipaketi ja jõuda LIVE Grand Finale'i las Vegases
LisateaveSeda brauserit enam ei toetata.
Uusimate funktsioonide, turbevärskenduste ja tehnilise toe kasutamiseks võtke kasutusele Microsoft Edge.
Settings are solution components that enable developers to quickly configure apps to provide a customized experience. Settings can be used to enable or disable features or configure feature behavior for a single app or all apps within an environment. More information: Use settings to provide customized app experiences
The following functions can be used to get or update a setting value using client API.
Gets the value of a setting for the current app.
var settingValue = Xrm.Utility.getGlobalContext().getCurrentAppSetting(settingName);
Name | Type | Required | Description |
---|---|---|---|
settingName |
String | Yes | The name of the setting to get the value for. |
Type: Same as the type of the setting: Number, String, or Yes/No
Description:
If the setting is Overridable:
When Value can be overridden is set to Environment and app, the setting app value is returned.
When Value can be overridden is set to Environment only, the setting environment value is returned.
When Value can be overridden is set to App only, the setting app value is returned.
If the setting is not Overridable, the default value as specified in the setting definition is returned.
If the setting name is incorrect or the setting could not be found, the return value is null.
Adds or updates the setting app value for the current app or the setting environment value for the current environment.
var appOverrideScope = 2; // Add or update a setting app value
var saveSettingOptions = {overrideScope: appOverrideScope, solutionUniqueName: mySolutionName};
Xrm.Utility.getGlobalContext().saveSettingValue(settingName, value, saveSettingOptions).then(successCallback, errorCallback);
Name | Type | Required | Description |
---|---|---|---|
settingName |
String | Yes | The name of the setting to update the value of. |
value |
Number, String, or Yes/No | Yes | The value to update the setting to. |
saveSettingOptions |
String | No | Options when updating the value. It contains two parameters
|
successCallback |
String | Yes | A function to call if the update is successful. |
errorCallback |
String | Yes | A function to call if the update fails. |
On success, returns a promise object.
You can also use the following Web APIs to get or update a setting value
Solutions overview
Use settings to provide customized app experiences
Sündmused
Power BI DataVizi maailmameistrivõistlused
14. veebr, 16 - 31. märts, 16
Nelja võimalusega siseneda, võiksite võita konverentsipaketi ja jõuda LIVE Grand Finale'i las Vegases
LisateaveKoolitus
Moodul
Advanced configuration for Dynamics 365 Customer Insights - Journeys - Training
Administrators use settings to fine-tune application behavior, set marketing defaults, check quotas, manage core marketing settings, and more.
Dokumentatsioon
Developers: Best practices and guidance for client-side scripting for model-driven apps - Power Apps
Best practices and guidance for client-side scripting for developers of model-driven apps in Power Apps.
Client API Reference for model-driven apps - Power Apps
The topic provides client API reference for model-driven apps.
getGlobalContext.userSettings (Client API reference) in model-driven apps - Power Apps
Includes description and supported parameters for the getGlobalContext.UserSettings method.