Peristiwa
Kejohanan Dunia Power BI DataViz
14 Feb, 4 PTG - 31 Mac, 4 PTG
Dengan 4 peluang untuk menyertai, anda boleh memenangi pakej persidangan dan berjaya ke Grand Finale LIVE di Las Vegas
Ketahui lebih lanjutPelayar ini tidak lagi disokong.
Naik taraf kepada Microsoft Edge untuk memanfaatkan ciri, kemas kini keselamatan dan sokongan teknikal yang terkini.
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
Peristiwa
Kejohanan Dunia Power BI DataViz
14 Feb, 4 PTG - 31 Mac, 4 PTG
Dengan 4 peluang untuk menyertai, anda boleh memenangi pakej persidangan dan berjaya ke Grand Finale LIVE di Las Vegas
Ketahui lebih lanjutLatihan
Modul
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.