This project has moved. For the latest updates, please go here.

Publish-CrmComponent

Synopsis

Publish CRM Components

Syntax

Publish-CrmComponent -Solution <Guid> [<CommonParameters>]

Publish-CrmComponent [-All] [<CommonParameters>]

Publish-CrmComponent [-Entities <String[]>] [-Webresources <Guid[]>] [-Optionsets <String[]>] [-Dashboards <Guid[]>] [-PublishRibbon] [-PublishSiteMap] [<CommonParameters>]

Description

Publish components in the Organization. All components, components in a solution, or specific components.

Parameters

-All <SwitchParameter>

Publish all components in the organization

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Entities <String[]>

List of logicalnames of entities to publish.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Webresources <Guid[]>

List of IDs (guid) of webresources to publish.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Optionsets <String[]>

List of logicalnames of global optionsets to publish.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Dashboards <Guid[]>

List of IDs (guid) of dashboards to publish. A dashboard is represented by the 'systemform' Entity.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-PublishRibbon <SwitchParameter>

Publish the Ribbons.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-PublishSiteMap <SwitchParameter>

Publish the SiteMap.

Required? False
Position? named
Default value  
Accept pipeline input? false
Accept wildcard characters? False

-Solution <Guid>

Required? True
Position? named
Default value  
Accept pipeline input? true (ByValue)
Accept wildcard characters? False

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, InformationAction, InformationVariable,
WarningAction, WarningVariable, OutBuffer, PipelineVariable and OutVariable.
For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

Inputs

Outputs

Notes

Examples

Publish all

PS C:\> Publish-CrmComponent -All

Publish all components in the organization

Publish solution

PS C:\> Publish-CrmComponent -Solution amsoftwarebase

Publish all components in the solution

Publish components

PS C:\> Publish-CrmComponent -Entities @(account, contact) -Optionsets @(gender) -Dashboards @(5C982B68-495F-4B1D-A950-03BA96C297FB) -Webresources @(20CBBEEC-993C-4456-B490-26F87D72C20E) -PublishSiteMap -PublishRibbon

Publish the specified component, and also the Ribbons and SiteMap.

Related links

Publish customizations https://msdn.microsoft.com/en-us/library/gg334390.aspx
PublishAllXmlRequest Class https://msdn.microsoft.com/en-us/library/microsoft.crm.sdk.messages.publishallxmlrequest.aspx
PublishXmlRequest Class https://msdn.microsoft.com/en-us/library/microsoft.crm.sdk.messages.publishxmlrequest.aspx
Publish request schema https://msdn.microsoft.com/en-us/library/gg334278.aspx

Last edited Mar 11 at 7:03 PM by amsoftware, version 2