Compartir a través de


DeploymentExtensions.ImportDataMap Method

Definition

Used to upload a data map to the Dataverse

public static Guid ImportDataMap (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string dataMapXml, bool replaceIds = true, bool dataMapXmlIsFilePath = false);
static member ImportDataMap : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * bool * bool -> Guid
<Extension()>
Public Function ImportDataMap (serviceClient As ServiceClient, dataMapXml As String, Optional replaceIds As Boolean = true, Optional dataMapXmlIsFilePath As Boolean = false) As Guid

Parameters

serviceClient
ServiceClient

ServiceClient

dataMapXml
String

XML of the datamap in string form

replaceIds
Boolean

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

dataMapXmlIsFilePath
Boolean

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

Returns

Returns ID of the datamap or Guid.Empty

Applies to