CrmServiceClient.ImportDataMapToCrm Method (String, Boolean, Boolean)

 

Updated: November 29, 2016

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)

public Guid ImportDataMapToCrm(
	string dataMapXml,
	bool replaceIds = true,
	bool dataMapXmlIsFilePath = false
)

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: