Freigeben über


CrmServiceClient.ImportDataMapToCrm Method (String, Boolean, Boolean)

 

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

Used to upload a data map to the CRM

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

Syntax

public Guid ImportDataMapToCrm(
    string dataMapXml,
    bool replaceIds = true,
    bool dataMapXmlIsFilePath = false
)
Public Function ImportDataMapToCrm (
    dataMapXml As String,
    replaceIds As Boolean,
    dataMapXmlIsFilePath As Boolean
) As Guid

Parameters

  • dataMapXml
    Type: System.String

    XML of the datamap in string form

  • replaceIds
    Type: System.Boolean

    True to have CRM replace ID's on inbound data, False to have inbound data retain its ID's

  • dataMapXmlIsFilePath
    Type: System.Boolean

    if true, dataMapXml is expected to be a File name and path to load.

Return Value

Type: System.Guid

Returns ID of the datamap or Guid.Empty

See Also

CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright