Organization Class | MSBuild Extension Pack Help 4.0.12.0 |
Valid TaskActions are:
Create (Required: DeploymentUrl, DisplayName, Name, SqlServerInstance, SsrsUrl Optional: Timeout, ConnectionTimeout)
UpdateSettings (Required: OrganizationUrl, Settings) Optional ConnectionTimeout
Inheritance Hierarchy
MSBuild.ExtensionPackBaseTask
MSBuild.ExtensionPack.CrmOrganization
Namespace: MSBuild.ExtensionPack.Crm
Assembly: MSBuild.ExtensionPack.Crm (in MSBuild.ExtensionPack.Crm.dll) Version: 4.0.0.0
The Organization type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Organization |
Properties
Name | Description | |
---|---|---|
ConnectionTimeout |
Gets or sets the timeout in minutes for connecting to Crm Service. Default is 3 minutes.
| |
DeploymentUrl |
Sets the Url of the Microsoft Dynamics Crm Deployment Service
| |
DisplayName |
Sets the Display name of the Organization
| |
Name |
Sets the Name of the Organization.
| |
OrganizationUrl |
Sets the Url of the Organization, whose setting needs to be changed.
| |
Settings |
Sets the Organization settings to update.
| |
SqlServerInstance |
Sets the name of the SQL Server instance that will host the database of the new Organization
| |
SsrsUrl |
Sets the SSRS Url for the new Organization that is created.
| |
Timeout |
The time in minutes for which the task would wait for the new Organization to be created. Default is 20.
|
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"> <!-- Create an Organization --> <MSBuild.ExtensionPack.Crm.Organization TaskAction="Create" DeploymentUrl="http://crmwebserver/XRMDeployment/2011/Deployment.svc" Name="organization1" DisplayName="Organization 1" SqlServerInstance="MySqlServer" SsrsUrl="http://reports1/ReportServer" Timeout="20" /> </Target> <Target Name="UpdateSettings"> <!-- Update an Organization's Settings --> <ItemGroup> <Settings Include="pricingdecimalprecision"> <Value>2</Value> </Settings> <Settings Include="localeid"> <Value>2057</Value> </Settings> <Settings Include="isauditenabled"> <Value>false</Value> </Settings> </ItemGroup> <MSBuild.ExtensionPack.Crm.Organization TaskAction="UpdateSetting" OrganizationUrl="http://crm/organization1" Settings="@(Settings)" /> </Target> </Project>
See Also