CrmServiceClient.ImportDataMapToCrm Method (String, Boolean, Boolean)

 

Applies To: Dynamics CRM 2015

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:
Guid ImportDataMapToCrm(
    String^ dataMapXml,
    bool replaceIds = true,
    bool dataMapXmlIsFilePath = false
)
member ImportDataMapToCrm : 
        dataMapXml:string *
        replaceIds:bool = true *
        dataMapXmlIsFilePath:bool = false -> Guid
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

© 2016 Microsoft. All rights reserved. Copyright