< Back

Import-CrmSolution

Sat Jan 18, 2020 4:03 pm

NAME Import-CrmSolution



SYNOPSIS

Imports solution file to CRM Organization.





SYNTAX

Import-CrmSolution [-conn <CrmServiceClient>] [-SolutionFilePath] <String> [[-ActivatePlugIns] <SwitchParameter>]

[[-OverwriteUnManagedCustomizations] <SwitchParameter>] [[-SkipDependancyOnProductUpdateCheckOnInstall]

<SwitchParameter>] [[-PublishChanges] <SwitchParameter>] [[-MaxWaitTimeInSeconds] <Int64>]

[[-ImportAsHoldingSolution] <SwitchParameter>] [[-AsyncOperationImportMethod] <SwitchParameter>]

[<CommonParameters>]





DESCRIPTION

The Import-CrmSolution cmdlet lets you import solution file to CRM Organization and returns Job Id. You can use

the Job Id to check import progress.





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



-SolutionFilePath <String>

A file path to solution zip file.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ActivatePlugIns [<SwitchParameter>]

Specify the parameter to active plug-ins when importing solution.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OverwriteUnManagedCustomizations [<SwitchParameter>]

Specify the parameter to overwrite conflicting unmanaged customizations when importing solution.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SkipDependancyOnProductUpdateCheckOnInstall [<SwitchParameter>]

Specify the parameter to skip dependency check when importing solution.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-PublishChanges [<SwitchParameter>]

Specify the parameter to publish all customizations (applicable only for unmanaged solution)



Required? false

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MaxWaitTimeInSeconds <Int64>

Specify the parameter to override the default maximum 900 seconds (15 minutes) to wait for an imported

solution to complete.



Required? false

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ImportAsHoldingSolution [<SwitchParameter>]

Import as a holding solution



Required? false

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AsyncOperationImportMethod [<SwitchParameter>]

Attempt to import using an async & poll method



Required? false

Position? 8

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 --------------------------



Import-CrmSolution -conn $conn -SolutionFilePath "C:\\SampleSolution_1_0_0_0.zip"



This example imports solution and returns JobId.







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



Import-CrmSolution "C:\\SampleSolution_1_0_0_0.zip" $True



This example imports solution by activating plug-ins and returns JobId by omitting parameter names.

When omitting parameter names, you do not provide $conn, cmdlets automatically finds it.









RELATED LINKS