Skip to content

Latest commit

 

History

History
92 lines (66 loc) · 4.8 KB

File metadata and controls

92 lines (66 loc) · 4.8 KB
title description ms.custom ms.date ms.reviewer ms.suite ms.tgt_pltfrm ms.topic applies_to helpviewer_keywords ms.assetid caps.latest.revision author ms.author search.audienceType
Publish customizations | MicrosoftDocs
Publishing customizations makes the Web application aware of changes to the data that affects the user interface.
10/31/2017
pehecke
article
Dynamics 365 Customer Engagement (on-premises)
publish customizations
649ec32a-1ae1-4966-96fa-3543f4a05509
26
JimDaly
jdaly
developer

Publish customizations

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 [!INCLUDEpn_moca_full], you should always explicitly publish your customizations to make sure that every item is synchronized with the [!INCLUDEpn_moca_short] application.

Note

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.

Publishing programmatically

The following table lists the two messages that you can use to publish customizations.

Message Description
xref:Microsoft.Crm.Sdk.Messages.PublishAllXmlRequest Publishes all customizations.
xref:Microsoft.Crm.Sdk.Messages.PublishXmlRequest Publishes the specified customizations.

When you use the PublishXmlRequest message, you specify which items you want to publish by using the xref:Microsoft.Crm.Sdk.Messages.PublishXmlRequest.ParameterXml parameter. ParameterXML must comply with the Publish Request Schema.

Retrieving unpublished metadata

If you want to create an application to edit customizable items in [!INCLUDEpn_dynamics_crm], 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:

RetrieveAsIfPublished parameter
Retrieves entity, attribute, entity relationship, and option set data by using the following messages:

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveAllEntitiesRequest

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveAllOptionSetsRequest

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveAttributeRequest

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveEntityRequest

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveOptionSetRequest

  • xref:Microsoft.Xrm.Sdk.Messages.RetrieveRelationshipRequest

    RetrieveUnpublished Request
    Retrieves user interface items, such as form, template, visualization and Web resource definitions, by using the following messages:

  • xref:Microsoft.Crm.Sdk.Messages.RetrieveUnpublishedRequest

  • xref:Microsoft.Crm.Sdk.Messages.RetrieveUnpublishedMultipleRequest

See also

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
Client scripting in Customer Engagement using JavaScript
Web Resources for Microsoft Dynamics 365 Customer Engagement

[!INCLUDEfooter-include]