Skip to content

Commit

Permalink
Merge pull request #140 from seanmcne/issue-95
Browse files Browse the repository at this point in the history
added more system settings options
  • Loading branch information
kenakamu authored Sep 24, 2016
2 parents 8e54768 + 0b0bc1e commit a6dc641
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 11 deletions.
144 changes: 133 additions & 11 deletions Microsoft.Xrm.Data.PowerShell/Microsoft.Xrm.Data.PowerShell.Help.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16428,6 +16428,15 @@ PS C:\&gt;Set-CrmRecordState $contact Inactive Inactive</dev:code>
</maml:description>
<command:parameterValue required="true" variableLength="false">CrmServiceClient</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="1">
<maml:name>AcknowledgementTemplateId</maml:name>
<maml:description>
<maml:para>
ID of the template to be used for acknowledgement when a user unsubscribes.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Guid</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="1">
<maml:name>ACTDeliveryMethod</maml:name>
<maml:description>
Expand Down Expand Up @@ -16516,6 +16525,17 @@ PS C:\&gt;Set-CrmRecordState $contact Inactive Inactive</dev:code>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="12">
<maml:name>
AllowUserFormModePreference
</maml:name>
<maml:description>
<maml:para>
Let user change Form Mode such as Read-Only. CRM 2011 only.
</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="12">
<maml:name>AllowUsersSeeAppdownloadMessage</maml:name>
<maml:description>
Expand All @@ -16532,43 +16552,145 @@ PS C:\&gt;Set-CrmRecordState $contact Inactive Inactive</dev:code>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="14">
<maml:name>
AMDesignator
</maml:name>
<maml:description>
<maml:para>
Update &quot;AM Symbol&quot; in Time Format.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="13">
<maml:name>
AutoApplyDefaultonCaseCreate
</maml:name>
<maml:description>
<maml:para>
Change &quot;Select whether to automatically apply the default customer entitlement when a case is created.&quot; Settings
</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="13">
<maml:name>AutoApplyDefaultonCaseUpdate</maml:name>
<maml:description>
<maml:para>
Change &quot;Select whether to automatically apply the default customer entitlement when a case is updated.&quot; Settings
</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="13">
<maml:name>
AutoApplySLA
</maml:name>
<maml:description>
<maml:para>
Change &quot;Automatically apply SLA on entity record update after SLA was manually applied.&quot; Settings
</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="14">
<maml:name>BlockedAttachments</maml:name>
<maml:name>BingMapsApiKey</maml:name>
<maml:description>
<maml:para>Update &quot;Set blocked file extensions for attachements&quot; list.
</maml:para>
<maml:para>
API key to be used in requests to Bing Maps services.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="14">
<maml:name>BlockedAttachments</maml:name>
<maml:description>
<maml:para>
Update &quot;Set blocked file extensions for attachements&quot; list.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<maml:name>
BusinessClosureCalendarId
</maml:name>
<maml:description>
<maml:para>
ID of the business closure calendar of organization.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Guid</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<maml:name>CampaignPrefix</maml:name>
<maml:description>
<maml:para>Prefix used for campaign numbering.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<maml:name>CascadeStatusUpdate</maml:name>
<maml:description>
<maml:para>
Flag to cascade update on incident (case).
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="16">
<maml:name>CasePrefix</maml:name>
<maml:description>
<maml:para>Prefix to use for all cases throughout Microsoft Dynamics CRM.
</maml:para>
<maml:para>Prefix to use for all cases throughout Microsoft Dynamics CRM.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="17">
<maml:name>ContractPrefix</maml:name>
<maml:description>
<maml:para>Prefix to use for all contracts throughout Microsoft Dynamics CRM.
</maml:para>
<maml:para>Prefix to use for all contracts throughout Microsoft Dynamics CRM.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="18">
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<maml:name>
CortanaProactiveExperienceEnabled
</maml:name>
<maml:description>
<maml:para>
Select whether to turn on task flows for Cortana for this organization.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="15">
<maml:name>
CreateProductsWithoutParentInActiveState
</maml:name>
<maml:description>
<maml:para>
Enable Initial state of newly created products to be Active instead of Draft.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="18">
<maml:name>
CurrencyDecimalPrecision
</maml:name>
<maml:description>
<maml:para>
Change &quot;Set the currency precision that is used for pricing throughout the system.&quot; Settings.
</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Int32</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="18">
<maml:name>CurrencyDisplayOption</maml:name>
<maml:description>
<maml:para>Change &quot;Display currencies by using&quot; setting. This parameter accepts int. To get all options, use Get-CrmEntityOptionSet organization currencydisplayoption | % Items command and use PickListItemId.
</maml:para>
<maml:para>Change &quot;Display currencies by using&quot; setting. This parameter accepts int. To get all options, use Get-CrmEntityOptionSet organization currencydisplayoption | % Items command and use PickListItemId.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">Int32</command:parameterValue>
</command:parameter>
Expand Down
24 changes: 24 additions & 0 deletions Microsoft.Xrm.Data.PowerShell/Microsoft.Xrm.Data.PowerShell.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -3992,6 +3992,8 @@ function Set-CrmSystemSettings {
PARAM(
[parameter(Mandatory=$false)]
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn,
[parameter(Mandatory=$false)]
[guid]$AcknowledgementTemplateId,
[parameter(Mandatory=$false)]
[int]$ACTDeliveryMethod,
[parameter(Mandatory=$false)]
Expand All @@ -4014,18 +4016,40 @@ function Set-CrmSystemSettings {
[bool]$AllowOutlookScheduledSyncs,
[parameter(Mandatory=$false)]
[bool]$AllowUnresolvedPartiesOnEmailSend,
[parameter(Mandatory=$false)]
[bool]$AllowUserFormModePreference,
[parameter(Mandatory=$false)]
[bool]$AllowUsersSeeAppdownloadMessage,
[parameter(Mandatory=$false)]
[bool]$AllowWebExcelExport,
[parameter(Mandatory=$false)]
[string]$AMDesignator,
[parameter(Mandatory=$false)]
[bool]$AutoApplyDefaultonCaseCreate,
[parameter(Mandatory=$false)]
[bool]$AutoApplyDefaultonCaseUpdate,
[parameter(Mandatory=$false)]
[bool]$AutoApplySLA,
[parameter(Mandatory=$false)]
[string]$BingMapsApiKey,
[parameter(Mandatory=$false)]
[string]$BlockedAttachments,
[parameter(Mandatory=$false)]
[guid]$BusinessClosureCalendarId,
[parameter(Mandatory=$false)]
[string]$CampaignPrefix,
[parameter(Mandatory=$false)]
[bool]$CascadeStatusUpdate,
[parameter(Mandatory=$false)]
[string]$CasePrefix,
[parameter(Mandatory=$false)]
[string]$ContractPrefix,
[parameter(Mandatory=$false)]
[bool]$CortanaProactiveExperienceEnabled,
[parameter(Mandatory=$false)]
[bool]$CreateProductsWithoutParentInActiveState,
[parameter(Mandatory=$false)]
[int]$CurrencyDecimalPrecision,
[parameter(Mandatory=$false)]
[int]$CurrencyDisplayOption,
[parameter(Mandatory=$false)]
Expand Down

0 comments on commit a6dc641

Please sign in to comment.