Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Learn how to customize model-driven apps by using supported Power Apps tools and documented code. This article helps you identify supported and upgradeable methods so you can avoid customization problems during updates and upgrades.
Customizations made using methods other than those described here are unsupported and could cause problems during updates and upgrades to model-driven apps. For more information, see Unsupported customizations later in this topic.
Customizations made by using methods other than those described in this article are unsupported and could cause problems during updates and upgrades to model-driven apps. For more information, see Unsupported customizations later in this article.
Customizations using Power Apps
Technical articles published on Microsoft sites such as this one support the topics they cover, but they might not support upgradeability.
The following customization methods can be used to produce fully supported customizations:
- Customization in Power Apps or solution explorer. For more information, see Overview of building model-driven apps
- Settings in the web application. For more information, see Administer model-driven apps.
- Reporting Services. For more information, see Reporting and analytics guide for model-driven apps.
Note
The behavior of model-driven apps depends on customizations applied to the associated Microsoft Dataverse. For more information, see Supported customizations for Dataverse. Fully supported means that developer support can provide assistance for customizations and that application support can help customers running those modifications.
Customizations applied using code
The documentation on this site for developers, technical articles, sample code published on this site, and information released by the Dataverse Developer Support Team are included in the area of customizations applied using code. The specific actions and levels of supportability and upgradeability are described later in this topic.
Client-side JavaScript
You can use JavaScript within model-driven apps in three areas:
- Form Script event handlers: You can configure form event handlers to call functions defined in JavaScript web resources.
- Command bar (ribbon) commands: You can use the
<CustomRule>or<JavaScriptFunction>elements to define actions that call functions defined within JavaScript web resources. - Web resources and IFRAMEs: You can use JavaScript web resources within HTML web resources. IFRAMES configured to allow cross-site scripting, or scripts within HTML web resources included in a form, can interact with the documented
Xrm.PageorXrm.Utilitymethods within the form via the parent reference.
All interaction with the application pages must use only the methods documented in the Client API Reference for model-driven apps. Directly accessing the Document Object Model (DOM) of any model-driven apps page isn't supported. Don't use jQuery in form scripts and commands. For more information, see Client scripting in model-driven apps using JavaScript.
You can open model-driven apps forms, views, dialogs, and reports by using the methods documented in Open forms, views, dialogs, and reports with a URL.
Ribbon customization
You can use RibbonDiffXml to add, remove, or hide ribbon elements. You can reuse ribbon commands defined by model-driven apps; however, Microsoft reserves the right to change or deprecate the available commands. You can't reuse JavaScript functions defined within ribbon commands.
Unsupported customizations
Modifications to Model-driven apps that you make without using either the methods described in this documentation or Power Apps tools aren't supported. Updates or upgrades of model-driven apps don't preserve these modifications. Anything that's not documented in this documentation and supporting documents isn't supported. Unsupported modifications can cause problems when you update through the addition of hot fixes or service packs or upgrade model-driven apps.
The following list includes unsupported action types that are frequently asked about:
Reusing any model-driven apps JavaScript code. This code might change or be overwritten during an upgrade.
Editing a solutions file to edit any solution components other than ribbons, forms, SiteMap, or saved queries isn't supported. For more information, see When to edit the customizations file.
- Defining new solution components by editing the solutions file isn't supported.
- Editing web resource files exported with a solution isn't supported.
- Except for the steps documented in Maintain managed solutions, editing the contents of a managed solution isn't supported.
Displaying a form within an IFrame embedded in another form isn't supported.
See also
Supported customizations for Dataverse
Apply business logic using client scripting in model-driven apps using JavaScript
Customize commands and the ribbon
Web resources in model-driven apps