BeginImportOrganizationRequest Class

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Contains the data that is needed to begin the asynchronous operation to import an organization.

Namespace:   Microsoft.Xrm.Sdk.Deployment
Assembly:  Microsoft.Xrm.Sdk.Deployment (in Microsoft.Xrm.Sdk.Deployment.dll)

System.Object
  Microsoft.Xrm.Sdk.Deployment.DeploymentServiceRequest
    Microsoft.Xrm.Sdk.Deployment.DeferredOperationRequest
      Microsoft.Xrm.Sdk.Deployment.BeginImportOrganizationRequest

[DataContractAttribute(Name = "BeginImportOrganizationRequest", 
	Namespace = "http://schemas.microsoft.com/xrm/2011/Contracts/Deployment")]
public class BeginImportOrganizationRequest : DeferredOperationRequest

NameDescription
System_CAPS_pubmethodBeginImportOrganizationRequest()

Initializes a new instance of the BeginImportOrganizationRequest class.

NameDescription
System_CAPS_pubpropertyDatabaseName

Gets or sets the database name for the organization. Required.

System_CAPS_pubpropertyExtensionData

Gets or sets the structure that contains extra data.(Inherited from DeploymentServiceRequest.)

System_CAPS_pubpropertyFriendlyName

Gets or sets the sets display name, or long name, of the organization database. Optional.

System_CAPS_pubpropertySqlServerName

Gets or sets the name of the Microsoft SQL Server where the Microsoft Dynamics 365 organization database is located. Required.

System_CAPS_pubpropertySrsUrl

Gets or sets the URL of the Microsoft SQL Server on which the Microsoft Dynamics 365 Connector for SQL Server Reporting Services is installed. Required.

System_CAPS_pubpropertyUniqueName

Gets or sets the unique name for the organization. Optional.

System_CAPS_pubpropertyUserMappingMethod

Gets or sets the mapping method to use to map user accounts from the original server to the new server. Optional.

System_CAPS_pubpropertyUserMappingXml

Gets or sets the XML user account mapping rules. Optional.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Usage

Pass an instance of this class to the Execute method, which returns an instance of BeginImportOrganizationResponse.

Notes for Callers

You can also use the Import-CrmOrganizationWindows PowerShell command. For more information, see Administer the deployment using Windows PowerShell.

You can use the Get-CrmOperationStatusWindows PowerShell command to check the status of this asynchronous request. Or, you can use the RetrieveRequest message using the OperationId property to set the InstanceTag property.


BeginImportOrganizationRequest request = new BeginImportOrganizationRequest();
request.DatabaseName = "MyOrgName" + "_MSCRM";
request.SqlServerName = Config.SetupSqlServer;
request.SrsUrl = "http://" + Config.SetupSqlServer + "/reportserver";

Guid operationId = ((BeginImportOrganizationResponse)_deploymentService.Execute(request)).OperationId;

DeferredOperationStatus importOrgOperationStatus = WaitForAsyncOperationAndReturnStatus(operationId);

If (importOrgOperationStatus.State == DeferredOperationState.Completed)
   //Do something

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: