< Back

Export-CrmSolution

Sat Jan 18, 2020 3:58 pm

NAME Export-CrmSolution



SYNOPSIS

Exports a solution by Name from a CRM Organization.





SYNTAX

Export-CrmSolution [-conn <CrmServiceClient>] [-SolutionName] <String> [[-SolutionFilePath] <String>]

[-SolutionZipFileName <String>] [-Managed <SwitchParameter>] [-TargetVersion <String>]

[-ExportAutoNumberingSettings <SwitchParameter>] [-ExportCalendarSettings <SwitchParameter>]

[-ExportCustomizationSettings <SwitchParameter>] [-ExportEmailTrackingSettings <SwitchParameter>]

[-ExportGeneralSettings <SwitchParameter>] [-ExportMarketingSettings <SwitchParameter>]

[-ExportOutlookSynchronizationSettings <SwitchParameter>] [-ExportRelationshipRoles <SwitchParameter>]

[-ExportIsvConfig <SwitchParameter>] [-ExportSales <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

The Export-CrmSolution cmdlet lets you export a solution file from CRM.





PARAMETERS

-conn <CrmServiceClient>

A connection to your CRM organization. Use $conn = Get-CrmConnection <Parameters> to generate it.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SolutionName <String>

An unique name of the exporting solution.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SolutionFilePath <String>

A path to save exporting solution.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SolutionZipFileName <String>

A file name of exporting solution zip file.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Managed [<SwitchParameter>]

Specify the parameter to export the solution as managed. if you don't give this parameter, the solution will

be exported as unmanaged.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TargetVersion <String>

Specify TargetVersion of exporting solution.

Examples of Valid versions: 7.0.0.0, 7.1.0.0, 8.0.0.0, 8.1.0.0, 8.2.0.0

See https://msdn.microsoft.com/en-us/library/dn689055.aspx for more details.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportAutoNumberingSettings [<SwitchParameter>]

Specify the parameter to export auto numbering settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportCalendarSettings [<SwitchParameter>]

Specify the parameter to export calendar settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportCustomizationSettings [<SwitchParameter>]

Specify the parameter to export customization settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportEmailTrackingSettings [<SwitchParameter>]

Specify the parameter to export email tracking settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportGeneralSettings [<SwitchParameter>]

Specify the parameter to export general settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportMarketingSettings [<SwitchParameter>]

Specify the parameter to export marketing settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportOutlookSynchronizationSettings [<SwitchParameter>]

Specify the parameter to export outlook synchronization settings.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportRelationshipRoles [<SwitchParameter>]

Specify the parameter to export relationship roles.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportIsvConfig [<SwitchParameter>]

Specify the parameter to export ISV config.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ExportSales [<SwitchParameter>]

Specify the parameter to export sales settings. Only available CRM 2015+



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES









-------------------------- Example 1 --------------------------



Export-CrmSolution -conn $conn -SolutionName "MySolution"



This example exports "MySolution" solution as unmanaged with current path and default name.







ExportSolutionResponse SolutionPath

---------------------- ------------

Microsoft.Crm.Sdk.Messages.ExportSolutionResponse C:\\Users\\xxxx\\Desktop\\MySolution_unmanaged_1.0.0.0.zip



-------------------------- Example 2 --------------------------



Export-CrmSolution "MySolution"



This example exports "MySolution" solution as unmanaged with current path and default name by omitting $conn

parameter.

When omitting $conn parameter, cmdlets automatically finds it.







ExportSolutionResponse SolutionPath

---------------------- ------------

Microsoft.Crm.Sdk.Messages.ExportSolutionResponse C:\\Users\\xxxx\\Desktop\\MySolution_unmanaged_1.0.0.0.zip



-------------------------- Example 3 --------------------------



Export-CrmSolution -conn $conn -SolutionName "MySolution" -Managed -SolutionFilePath "C:\\temp"

-SolutionZipFileName "MySolution_Managed.zip"



This example exports "MySolution" solution as managed with specified path and name.







ExportSolutionResponse SolutionPath

---------------------- ------------

Microsoft.Crm.Sdk.Messages.ExportSolutionResponse C:\\temp\\MySolution_Managed.zip





RELATED LINKS