Data Class

MSBuild Extension Pack

Data Class MSBuild Extension Pack Help 4.0.12.0
Valid TaskActions are:

Import (Required: OrganizationUrl, DataMapName, FilePath, SourceEntityName, TargetEntityName Optional: Overwrite, ConnectionTimeout)

Inheritance Hierarchy

SystemObject  Microsoft.Build.UtilitiesTask
    MSBuild.ExtensionPackBaseTask
      MSBuild.ExtensionPack.CrmData

Namespace: MSBuild.ExtensionPack.Crm
Assembly: MSBuild.ExtensionPack.Crm (in MSBuild.ExtensionPack.Crm.dll) Version: 4.0.0.0

The Data type exposes the following members.

Constructors

  NameDescription
Public methodData
Top
Properties

  NameDescription
Public propertyConnectionTimeout
Gets or sets the timeout in minutes for connecting to Crm Service. Default is 3 minutes.
Public propertyDataMapName
Sets the Name of the data map.
Public propertyFilePath
Sets the DataMap import file path.
Public propertyOrganizationUrl
Sets the Url of the Organization, whose setting needs to be changed.
Public propertySourceEntityName
Sets the name of the source entity where the data file was produced from.
Public propertyTargetEntityName
Sets the name of the target entity where the data imported to.
Public propertyTimeout
The time in minutes for which the task would wait for the new organization to be created. Default is 20.
Top
Examples

<Project ToolsVersion="4.0" DefaultTargets="Default" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <TPath>$(MSBuildProjectDirectory)\..\MSBuild.ExtensionPack.tasks</TPath>
        <TPath Condition="Exists('$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks')">$(MSBuildProjectDirectory)\..\..\Common\MSBuild.ExtensionPack.tasks</TPath>
    </PropertyGroup>
    <Import Project="$(TPath)"/>
    <Target Name="Default">
        <!-- Import a data file -->
        <MSBuild.ExtensionPack.Crm.Data TaskAction="Import" OrganizationUrl="http://crm/organization1" DataMapName="DataMap1" SourceEntityName="Entity1" TargetEntityName="Entity1" FilePath="DataImportFile.csv" />
    </Target>
</Project>
See Also

Reference