Publishing customizations makes the Web application aware of changes to the data that affects the user interface.
When to publish customizations
Customizations are automatically published when new items are created or existing items are deleted.
You must publish changes after updating schema metadata or entities that affect the user interface. You can decide to wait and publish a set of related changes together.
Only published customizations are exported with a solution. You should always publish customizations before exporting a solution.
When you perform customizations that will appear in Dynamics 365 for tablets, you should always explicitly publish your customizations to make sure that every item is synchronized with the Dynamics 365 for tablets application.
Publishing customizations can interfere with normal system operation. In a production environment, we recommend that you schedule publishing customizations when it’s least disruptive to users.
The following table lists the two messages that you can use to publish customizations.
|PublishAllXmlRequest||Publishes all customizations.|
|PublishXmlRequest||Publishes the specified customizations.|
Retrieving unpublished metadata
If you want to create an application to edit customizable items in Dynamics 365 for Customer Engagement, you must retrieve any unpublished definitions of those items. If a developer defines some changes but does not publish them, your application must be able to retrieve them to display them in the user interface.
Use the following two methods to retrieve unpublished metadata:
Retrieves entity, attribute, entity relationship, and option set data by using the following messages:
Retrieves user interface items, such as form, template, visualization and Web resource definitions, by using the following messages:
Customize Dynamics 365 Customer Engagement
Extend the Metadata Model for Microsoft Dynamics 365 Customer Engagement
Publish request schema
Customize Entity Forms in Microsoft Dynamics 365 Customer Engagement
Customize Entity Views in Microsoft Dynamics 365 Customer Engagement
Customize Global Option Sets in Microsoft Dynamics 365 Customer Engagement
Change Application Navigation using the SiteMap
Customize the Ribbon for Microsoft Dynamics 365 Customer Engagement
Open Forms, Views, and Dialogs with a URL
Web Resources for Microsoft Dynamics 365 Customer Engagement