Share via


CrmServiceClient.ImportSolutionToCrm Method (String, Guid, Boolean, Boolean, Boolean)

 

Applies To: Dynamics CRM 2015

Imports a CRM solution to the CRM Server currently connected.

*** Note: this is a blocking call and will take time to Import to CRM ***

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public Guid ImportSolutionToCrm(
    string solutionPath,
    out Guid importId,
    bool activatePlugIns = true,
    bool overwriteUnManagedCustomizations = false,
    bool skipDependancyOnProductUpdateCheckOnInstall = false
)
public:
Guid ImportSolutionToCrm(
    String^ solutionPath,
    [OutAttribute] Guid% importId,
    bool activatePlugIns = true,
    bool overwriteUnManagedCustomizations = false,
    bool skipDependancyOnProductUpdateCheckOnInstall = false
)
member ImportSolutionToCrm : 
        solutionPath:string *
        importId:Guid byref *
        activatePlugIns:bool = true *
        overwriteUnManagedCustomizations:bool = false *
        skipDependancyOnProductUpdateCheckOnInstall:bool = false -> Guid
Public Function ImportSolutionToCrm (
    solutionPath As String,
    <OutAttribute> ByRef importId As Guid,
    activatePlugIns As Boolean,
    overwriteUnManagedCustomizations As Boolean,
    skipDependancyOnProductUpdateCheckOnInstall As Boolean
) As Guid

Parameters

  • activatePlugIns
    Type: System.Boolean

    Activate Plugin's and workflows on the Solution

  • importId
    Type: System.Guid

    This will populate with the Import ID even if the request failed. You can use this ID to request status on the import via a request to the ImportJob entity.

  • overwriteUnManagedCustomizations
    Type: System.Boolean

    Forces an overwrite of unmanaged customizations of the managed solution you are installing, defaults to false

  • skipDependancyOnProductUpdateCheckOnInstall
    Type: System.Boolean

    Skips dependency against dependencies flagged as product update, defaults to false

Return Value

Type: System.Guid

Returns the Import Solution Job ID. To find the status of the job, query the ImportJob Entity using GetEntityDataByID using the returned value of this method

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright