Created
July 26, 2024 09:07
-
-
Save kerray/39460748963314f454f5c3a32a7a2287 to your computer and use it in GitHub Desktop.
Microsoft.Xrm.Data.PowerShell method signatures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Microsoft.Xrm.Data.PowerShell.psm1 method signatures for better generated code | |
function Connect-CrmOnlineDiscovery{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[PSCredential]$Credential, | |
[Parameter(Mandatory=$false)] | |
[switch]$InteractiveMode | |
) | |
# method body | |
} | |
function Connect-CrmOnline{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Position=1, Mandatory=$true, ParameterSetName="connectionstring")] | |
[string]$ConnectionString, | |
[parameter(Position=1, Mandatory=$true, ParameterSetName="Secret")] | |
[Parameter(Position=1,Mandatory=$true, ParameterSetName="Creds")] | |
[Parameter(Position=1,Mandatory=$true, ParameterSetName="NoCreds")] | |
[ValidatePattern('([\w-]+).crm([0-9]*).(microsoftdynamics|dynamics|crm[\w-]*).(com|de|us|cn)')] | |
[string]$ServerUrl, | |
[parameter(Position=2, Mandatory=$true, ParameterSetName="Creds")] | |
[PSCredential]$Credential, | |
[Parameter(Position=3,Mandatory=$false, ParameterSetName="Creds")] | |
[Parameter(Position=2,Mandatory=$false, ParameterSetName="NoCreds")] | |
[switch]$ForceDiscovery, | |
[Parameter(Position=4,Mandatory=$false, ParameterSetName="Creds")] | |
[Parameter(Position=3,Mandatory=$false, ParameterSetName="NoCreds")] | |
[switch]$ForceOAuth, | |
[parameter(Position=2, Mandatory=$true, ParameterSetName="Secret")] | |
[Parameter(Position=5,Mandatory=$false, ParameterSetName="Creds")] | |
[Parameter(Position=4,Mandatory=$false, ParameterSetName="NoCreds")] | |
[ValidateScript({ | |
try { | |
[System.Guid]::Parse($_) | Out-Null | |
$true | |
} catch { | |
$false | |
} | |
})] | |
[string]$OAuthClientId, | |
[parameter(Position=3, Mandatory=$false, ParameterSetName="Secret")] | |
[Parameter(Position=6,Mandatory=$false, ParameterSetName="Creds")] | |
[Parameter(Position=5,Mandatory=$false, ParameterSetName="NoCreds")] | |
[string]$OAuthRedirectUri, | |
[parameter(Position=4, Mandatory=$true, ParameterSetName="Secret")] | |
[string]$ClientSecret, | |
[parameter(Position=5, Mandatory=$false, ParameterSetName="NoCreds")] | |
[string]$Username, | |
[int]$ConnectionTimeoutInSeconds, | |
[string]$LogWriteDirectory, | |
[switch]$BypassTokenCache | |
) | |
# method body | |
} | |
function Connect-CrmOnPremDiscovery{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false, ParameterSetName="ServerUrl")] | |
[PSCredential]$Credential, | |
[Parameter(Mandatory=$true, ParameterSetName="ServerUrl")] | |
[ValidatePattern('http(s)?://[\w-]+(/[\w- ./?%&=]*)?')] | |
[Uri]$ServerUrl, | |
[Parameter(Mandatory=$false, ParameterSetName="ServerUrl")] | |
[string]$OrganizationName, | |
[Parameter(Mandatory=$false, ParameterSetName="ServerUrl")] | |
[string]$HomeRealmUrl, | |
[Parameter(Mandatory=$false, ParameterSetName="InteractiveMode")] | |
[switch]$InteractiveMode | |
) | |
# method body | |
} | |
function New-CrmRecord{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="NameAndFields")] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="NameAndFields")] | |
[hashtable]$Fields, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[PSObject]$CrmRecord, | |
[parameter(Mandatory=$false, Position=2, ParameterSetName="CrmRecord")] | |
[switch]$PreserveCrmRecordId | |
) | |
# method body | |
} | |
function Get-CrmRecord{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2)] | |
[guid]$Id, | |
[parameter(Mandatory=$true, Position=3)] | |
[string[]]$Fields, | |
[parameter(Mandatory=$false, Position=4)] | |
[switch]$IncludeNullValue | |
) | |
# method body | |
} | |
function Set-CrmRecord{ | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[PSObject]$CrmRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="Fields")] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="Fields")] | |
[guid]$Id, | |
[parameter(Mandatory=$true, Position=3, ParameterSetName="Fields")] | |
[hashtable]$Fields, | |
[parameter(Mandatory=$false)] | |
[switch]$Upsert, | |
[parameter(Mandatory=$false)] | |
[AllowNull()] | |
[AllowEmptyString()] | |
[string]$PrimaryKeyField | |
) | |
# method body | |
} | |
function Remove-CrmRecord { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id | |
) | |
# method body | |
} | |
function Move-CrmRecordToQueue { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id, | |
[string]$QueueName, | |
[guid]$WorkingUserId, | |
[bool]$SetWorkingByUser | |
) | |
# method body | |
} | |
function Set-CrmRecordOwner { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id, | |
[guid]$PrincipalId, | |
[switch]$AssignToTeam | |
) | |
# method body | |
} | |
function Set-CrmActivityRecordToCloseState { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$ActivityEntityType, | |
[guid]$ActivityId, | |
[string]$StateCode, | |
[string]$StatusCode | |
) | |
# method body | |
} | |
function Add-CrmNoteToCrmRecord { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id, | |
[string]$Subject, | |
[string]$NoteText | |
) | |
# method body | |
} | |
function Add-CrmRecordAssociation { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord1, | |
[PSObject]$CrmRecord2, | |
[string]$EntityLogicalName1, | |
[guid]$Id1, | |
[string]$EntityLogicalName2, | |
[guid]$Id2, | |
[string]$RelationshipName | |
) | |
# method body | |
} | |
function Add-CrmMultiRecordAssociation { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord1, | |
[PSObject[]]$CrmRecord2s, | |
[string]$EntityLogicalName1, | |
[guid]$Id1, | |
[string]$EntityLogicalName2, | |
[guid[]]$Id2s, | |
[string]$RelationshipName, | |
[bool]$IsReflexiveRelationship | |
) | |
# method body | |
} | |
function Add-CrmActivityToCrmRecord { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id, | |
[string]$ActivityEntityType, | |
[string]$Subject, | |
[string]$Description, | |
[string]$OnwerUserId, | |
[hashtable]$Fields | |
) | |
# method body | |
} | |
function Remove-CrmRecordAssociation { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord1, | |
[PSObject]$CrmRecord2, | |
[string]$EntityLogicalName1, | |
[guid]$Id1, | |
[string]$EntityLogicalName2, | |
[guid]$Id2, | |
[string]$RelationshipName | |
) | |
# method body | |
} | |
function Invoke-CrmRecordWorkflow { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityId, | |
[string]$WorkflowName, | |
[string]$WorkflowId | |
) | |
# method body | |
} | |
function Get-MyCrmUserId { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmEntityAttributes { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmEntityAllMetadata { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[bool]$OnlyPublished, | |
[string]$EntityFilters | |
) | |
# method body | |
} | |
function Get-CrmEntityAttributeMetadata { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName, | |
[string]$FieldLogicalName | |
) | |
# method body | |
} | |
function Get-CrmRecordsByFetch { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$Fetch, | |
[int]$TopCount, | |
[int]$PageNumber, | |
[string]$PageCookie, | |
[switch]$AllRows | |
) | |
# method body | |
} | |
function Get-CrmEntityDisplayName { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmEntityDisplayPluralName { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmEntityMetadata { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName, | |
[string]$EntityFilters | |
) | |
# method body | |
} | |
function Get-CrmEntityName { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[int]$EntityTypeCode | |
) | |
# method body | |
} | |
function Get-CrmEntityTypeCode { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmGlobalOptionSet { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$OptionSetName | |
) | |
# method body | |
} | |
function Get-CrmEntityOptionSet { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName, | |
[string]$FieldLogicalName | |
) | |
# method body | |
} | |
function Import-CrmSolutionAsync { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$SolutionFilePath, | |
[switch]$ActivateWorkflows, | |
[switch]$OverwriteUnManagedCustomizations, | |
[switch]$SkipDependancyOnProductUpdateCheckOnInstall, | |
[switch]$PublishChanges, | |
[int64]$MaxWaitTimeInSeconds, | |
[switch]$ImportAsHoldingSolution, | |
[switch]$BlockUntilImportComplete, | |
[int64]$PollingDelayInSeconds | |
) | |
# method body | |
} | |
function Import-CrmSolution { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$SolutionFilePath, | |
[switch]$ActivatePlugIns, | |
[switch]$OverwriteUnManagedCustomizations, | |
[switch]$SkipDependancyOnProductUpdateCheckOnInstall, | |
[switch]$PublishChanges, | |
[int64]$MaxWaitTimeInSeconds, | |
[switch]$ImportAsHoldingSolution, | |
[switch]$AsyncOperationImportMethod | |
) | |
# method body | |
} | |
function Merge-CrmHoldingSolutionAsync { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$CrmSolutionName, | |
[int64]$MaxWaitTimeInSeconds, | |
[switch]$BlockUntilImportComplete, | |
[int64]$PollingDelayInSeconds | |
) | |
# method body | |
} | |
function Add-CrmSampleData { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Test-CrmSampleDataInstalled { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Publish-CrmEntity { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Publish-CrmTheme { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$ThemeName, | |
[guid]$ThemeId | |
) | |
# method body | |
} | |
function Remove-CrmEntityMetadataCache { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Remove-CrmSampleData { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Set-CrmRecordState { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[PSObject]$CrmRecord, | |
[string]$EntityLogicalName, | |
[guid]$Id, | |
[string]$StateCode, | |
[string]$StatusCode | |
) | |
# method body | |
} | |
function Approve-CrmEmailAddress { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$UserId, | |
[string]$QueueId | |
) | |
# method body | |
} | |
function Disable-CrmLanguagePack { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[Int]$LCID | |
) | |
# method body | |
} | |
function Enable-CrmLanguagePack { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[Int]$LCID | |
) | |
# method body | |
} | |
function Export-CrmApplicationRibbonXml { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$RibbonFilePath | |
) | |
# method body | |
} | |
function Export-CrmEntityRibbonXml { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName, | |
[string]$RibbonFilePath | |
) | |
# method body | |
} | |
function Export-CrmSolution { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$SolutionName, | |
[string]$SolutionFilePath, | |
[string]$SolutionZipFileName, | |
[switch]$Managed, | |
[string]$TargetVersion, | |
[switch]$ExportAutoNumberingSettings, | |
[switch]$ExportCalendarSettings, | |
[switch]$ExportCustomizationSettings, | |
[switch]$ExportEmailTrackingSettings, | |
[switch]$ExportGeneralSettings, | |
[switch]$ExportMarketingSettings, | |
[switch]$ExportOutlookSynchronizationSettings, | |
[switch]$ExportRelationshipRoles, | |
[switch]$ExportIsvConfig, | |
[switch]$ExportSales | |
) | |
# method body | |
} | |
function Export-CrmSolutionTranslation { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$SolutionName, | |
[string]$TranslationFilePath, | |
[string]$TranslationZipFileName | |
) | |
# method body | |
} | |
function Get-CrmAllLanguagePacks { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmEntityRecordCount { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmFailedWorkflows { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[int]$TopCount, | |
[int]$PageNumber, | |
[string]$PageCookie, | |
[switch]$AllRows | |
) | |
# method body | |
} | |
function Get-CrmLicenseSummary { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmOrgDbOrgSettings { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmRecords { | |
[CmdletBinding()] | |
PARAM( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[string]$EntityLogicalName, | |
[string]$FilterAttribute, | |
[string]$FilterOperator, | |
[string]$FilterValue, | |
[string[]]$Fields, | |
[switch]$AllRows, | |
[int]$TopCount | |
) | |
# method body | |
} | |
function Get-CrmRecordsByViewName { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$ViewName, | |
[parameter(Mandatory=$false, Position=2)] | |
[bool]$IsUserView, | |
[parameter(Mandatory=$false, Position=3)] | |
[switch]$AllRows, | |
[parameter(Mandatory=$false, Position=4)] | |
[int]$TopCount | |
) | |
# method body | |
} | |
function Get-CrmRecordsCount { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)][alias("EntityName")] | |
[string]$EntityLogicalName | |
) | |
# method body | |
} | |
function Get-CrmSdkMessageProcessingStepsForPluginAssembly { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$PluginAssemblyName, | |
[parameter(Mandatory=$false, Position=2)] | |
[switch]$OnlyCustomizable | |
) | |
# method body | |
} | |
function Get-CrmSiteMap { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$false, ParameterSetName="ShowXml")] | |
[switch]$SiteXml, | |
[parameter(Mandatory=$false, ParameterSetName="ShowArea")] | |
[switch]$Areas, | |
[parameter(Mandatory=$false, ParameterSetName="ShowGroupOfArea")] | |
[string]$GroupsOfArea, | |
[parameter(Mandatory=$false, ParameterSetName="ShowSubAreaOfArea")] | |
[string]$SubAreasOfArea | |
) | |
# method body | |
} | |
function Get-CrmSystemSettings { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$false)] | |
[switch]$ShowDisplayName | |
) | |
# method body | |
} | |
function Get-CrmTimeZones { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmTraceAlerts { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Get-CrmUserMailbox { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$UserId | |
) | |
# method body | |
} | |
function Get-CrmUserPrivileges { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$UserId | |
) | |
# method body | |
} | |
function Get-CrmUserSecurityRoles { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$UserId, | |
[parameter(Mandatory=$false)] | |
[switch]$IncludeTeamRoles | |
) | |
# method body | |
} | |
function Get-CrmUserSettings { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$UserId, | |
[parameter(Mandatory=$true, Position=2)] | |
[string[]]$Fields | |
) | |
# method body | |
} | |
function Grant-CrmRecordAccess { | |
[OutputType([void])] | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false, Position=0)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord", ValueFromPipeline=$true)] | |
[PSObject[]]$CrmRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="NameWithId")] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="NameWithId")] | |
[guid]$Id, | |
[parameter(Mandatory=$true, Position=3)] | |
[Microsoft.Xrm.Sdk.EntityReference]$Principal, | |
[parameter(Mandatory=$true, Position=4)] | |
[Microsoft.Crm.Sdk.Messages.AccessRights]$AccessMask | |
) | |
# method body | |
} | |
function Import-CrmSolutionTranslation { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$TranslationFileName, | |
[parameter(Mandatory=$false, Position=2)] | |
[switch]$PublishChanges | |
) | |
# method body | |
} | |
function Invoke-CrmWhoAmI { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Invoke-CrmAction { | |
[OutputType([hashtable])] | |
[OutputType([Microsoft.Xrm.Sdk.OrganizationResponse], ParameterSetName="Raw")] | |
PARAM ( | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[Parameter(Position=1, Mandatory=$true)] | |
[ValidateNotNullOrEmpty()] | |
[string]$Name, | |
[Parameter(Position=2)] | |
[hashtable]$Parameters, | |
[Parameter(ValueFromPipeline, Position=3)] | |
[ValidateNotNullOrEmpty()] | |
[Microsoft.Xrm.Sdk.EntityReference]$Target, | |
[Parameter(ParameterSetName="Raw")] | |
[switch]$Raw | |
) | |
# method body | |
} | |
function Publish-CrmCustomization { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$false)] | |
[switch]$Entity, | |
[parameter(Mandatory=$false)] | |
[string[]]$EntityLogicalNames, | |
[parameter(Mandatory=$false)] | |
[switch]$Ribbon, | |
[parameter(Mandatory=$false)] | |
[switch]$SiteMap, | |
[parameter(Mandatory=$false)] | |
[switch]$Dashbord, | |
[parameter(Mandatory=$false)] | |
[guid[]]$DashbordIds, | |
[parameter(Mandatory=$false)] | |
[switch]$OptionSet, | |
[parameter(Mandatory=$false)] | |
[string[]]$OptionSetNames, | |
[parameter(Mandatory=$false)] | |
[switch]$WebResource, | |
[parameter(Mandatory=$false)] | |
[guid[]]$WebResourceIds | |
) | |
# method body | |
} | |
function Publish-CrmAllCustomization { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn | |
) | |
# method body | |
} | |
function Add-CrmSecurityRoleToTeam { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[PSObject]$TeamRecord, | |
[parameter(Mandatory=$false, Position=2, ParameterSetName="CrmRecord")] | |
[PSObject]$SecurityRoleRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="Id")] | |
[string]$TeamId, | |
[parameter(Mandatory=$false, Position=2, ParameterSetName="Id")] | |
[string]$SecurityRoleId, | |
[parameter(Mandatory=$false, Position=2)] | |
[string]$SecurityRoleName | |
) | |
# method body | |
} | |
function Add-CrmSecurityRoleToUser { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[PSObject]$UserRecord, | |
[parameter(Mandatory=$false, Position=2, ParameterSetName="CrmRecord")] | |
[PSObject]$SecurityRoleRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="Id")] | |
[string]$UserId, | |
[parameter(Mandatory=$false, Position=2, ParameterSetName="Id")] | |
[string]$SecurityRoleId, | |
[parameter(Mandatory=$false, Position=3, ParameterSetName="Id")] | |
[parameter(Mandatory=$false, Position=3, ParameterSetName="CrmRecord")] | |
[string]$SecurityRoleName | |
) | |
# method body | |
} | |
function Remove-CrmSecurityRoleFromTeam { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[PSObject]$TeamRecord, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="CrmRecord")] | |
[PSObject]$SecurityRoleRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="Id")] | |
[string]$TeamId, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="Id")] | |
[string]$SecurityRoleId | |
) | |
# method body | |
} | |
function Remove-CrmSecurityRoleFromUser { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord")] | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecordRoleName")] | |
[PSObject]$UserRecord, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="CrmRecord")] | |
[PSObject]$SecurityRoleRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="Id")] | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="IdRoleName")] | |
[string]$UserId, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="Id")] | |
[string]$SecurityRoleId, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="CrmRecordRoleName")] | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="IdRoleName")] | |
[string]$SecurityRoleName | |
) | |
# method body | |
} | |
function Remove-CrmUserManager { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[guid]$UserId | |
) | |
# method body | |
} | |
function Revoke-CrmEmailAddress { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="UserId")] | |
[string]$UserId, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="QueueId")] | |
[string]$QueueId | |
) | |
# method body | |
} | |
function Revoke-CrmRecordAccess { | |
[OutputType([void])] | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false, Position=0)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord", ValueFromPipeline=$true)] | |
[PSObject[]]$CrmRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="NameWithId")] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="NameWithId")] | |
[guid]$Id, | |
[parameter(Mandatory=$true, Position=3)] | |
[Microsoft.Xrm.Sdk.EntityReference]$Revokee | |
) | |
# method body | |
} | |
function Set-CrmSolutionVersionNumber { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$SolutionName, | |
[parameter(Mandatory=$true, Position=2)] | |
[ValidatePattern('^(?:[\d]{1,}\.){1,3}[\d]{1,}$')] | |
[string]$VersionNumber | |
) | |
# method body | |
} | |
function Set-CrmConnectionCallerId { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, position=1)][Alias("UserId")] | |
[guid]$CallerId | |
) | |
# method body | |
} | |
function Set-CrmConnectionTimeout { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$false, position=1)] | |
[Int64]$TimeoutInSeconds, | |
[parameter(Mandatory=$false, position=1)] | |
[switch]$SetDefault | |
) | |
# method body | |
} | |
function Set-CrmSystemSettings { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$false)] | |
[guid]$AcknowledgementTemplateId, | |
[parameter(Mandatory=$false)] | |
[int]$ACTDeliveryMethod, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowAddressBookSyncs, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowAutoResponseCreation, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowAutoUnsubscribe, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowAutoUnsubscribeAcknowledgement, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowClientMessageBarAd, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowEntityOnlyAudit, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowMarketingEmailExecution, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowOfflineScheduledSyncs, | |
[parameter(Mandatory=$false)] | |
[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)] | |
[int]$CurrentCampaignNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentCaseNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentContractNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentInvoiceNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentKbNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentOrderNumber, | |
[parameter(Mandatory=$false)] | |
[int]$CurrentQuoteNumber, | |
[parameter(Mandatory=$false)] | |
[ValidatePattern('\+{1}\d{1,}')] | |
[string]$DefaultCountryCode, | |
[parameter(Mandatory=$false)] | |
[guid]$DefaultEmailServerProfileId, | |
[parameter(Mandatory=$false)] | |
[bool]$DisableSocialCare, | |
[parameter(Mandatory=$false)] | |
[bool]$DisplayNavigationTour, | |
[parameter(Mandatory=$false)] | |
[int]$EmailConnectionChannel, | |
[parameter(Mandatory=$false)] | |
[int]$EmailCorrelationEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$EnableBingMapsIntegration, | |
[parameter(Mandatory=$false)] | |
[bool]$EnableSmartMatching, | |
[parameter(Mandatory=$false)] | |
[int]$FullNameConventionCode, | |
[parameter(Mandatory=$false)] | |
[bool]$GenerateAlertsForErrors, | |
[parameter(Mandatory=$false)] | |
[bool]$GenerateAlertsForWarnings, | |
[parameter(Mandatory=$false)] | |
[bool]$GenerateAlertsForInformation, | |
[parameter(Mandatory=$false)] | |
[bool]$GlobalAppendUrlParametersEnabled, | |
[parameter(Mandatory=$false)] | |
[ValidatePattern('http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?')] | |
[string]$GlobalHelpUrl, | |
[parameter(Mandatory=$false)] | |
[bool]$GlobalHelpUrlEnabled, | |
[parameter(Mandatory=$false)] | |
[int]$HashDeltaSubjectCount, | |
[parameter(Mandatory=$false)] | |
[string]$HashFilterKeywords, | |
[parameter(Mandatory=$false)] | |
[int]$HashMaxCount, | |
[parameter(Mandatory=$false)] | |
[int]$HashMinAddressCount, | |
[parameter(Mandatory=$false)] | |
[bool]$IgnoreInternalEmail, | |
[parameter(Mandatory=$false)] | |
[int]$IncomingEmailDeliveryMethod, | |
[parameter(Mandatory=$false)] | |
[string]$InvoicePrefix, | |
[parameter(Mandatory=$false)] | |
[bool]$IsAutoSaveEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsDefaultCountryCodeCheckEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsDuplicateDetectionEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsDuplicateDetectionEnabledForImport, | |
[parameter(Mandatory=$false)] | |
[bool]$IsDuplicateDetectionEnabledForOfflineSync, | |
[parameter(Mandatory=$false)] | |
[bool]$IsDuplicateDetectionEnabledForOnlineCreateUpdate, | |
[parameter(Mandatory=$false)] | |
[bool]$isenabledforallroles, | |
[parameter(Mandatory=$false)] | |
[bool]$IsFolderBasedTrackingEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsFullTextSearchEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsHierarchicalSecurityModelEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsPresenceEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$IsUserAccessAuditEnabled, | |
[parameter(Mandatory=$false)] | |
[string]$KbPrefix, | |
[parameter(Mandatory=$false)] | |
[int]$MaxAppointmentDurationDays, | |
[parameter(Mandatory=$false)] | |
[int]$MaxDepthForHierarchicalSecurityModel, | |
[parameter(Mandatory=$false)] | |
[int]$MaximumActiveBusinessProcessFlowsAllowedPerEntity, | |
[parameter(Mandatory=$false)] | |
[int]$MaximumDynamicPropertiesAllowed, | |
[parameter(Mandatory=$false)] | |
[int]$MaximumTrackingNumber, | |
[parameter(Mandatory=$false)] | |
[int]$MaxProductsInBundle, | |
[parameter(Mandatory=$false)] | |
[int]$MaxRecordsForExportToExcel, | |
[parameter(Mandatory=$false)] | |
[int]$MaxRecordsForLookupFilters, | |
[parameter(Mandatory=$false)] | |
[int]$MaxUploadFileSize, | |
[parameter(Mandatory=$false)] | |
[int]$MinAddressBookSyncInterval, | |
[parameter(Mandatory=$false)] | |
[int]$MinOfflineSyncInterval, | |
[parameter(Mandatory=$false)] | |
[int]$MinOutlookSyncInterval, | |
[parameter(Mandatory=$false)] | |
[bool]$NotifyMailboxOwnerOfEmailServerLevelAlerts, | |
[parameter(Mandatory=$false)] | |
[string]$OrderPrefix, | |
[parameter(Mandatory=$false)] | |
[int]$OutgoingEmailDeliveryMethod, | |
[parameter(Mandatory=$false)] | |
[ValidateSet(0,1,2)] | |
[int]$PluginTraceLogSetting, | |
[parameter(Mandatory=$false)] | |
[ValidateSet(0,1,2,3,4)] | |
[int]$PricingDecimalPrecision, | |
[parameter(Mandatory=$false)] | |
[bool]$QuickFindRecordLimitEnabled, | |
[parameter(Mandatory=$false)] | |
[string]$QuotePrefix, | |
[parameter(Mandatory=$false)] | |
[bool]$RequireApprovalForUserEmail, | |
[parameter(Mandatory=$false)] | |
[bool]$RequireApprovalForQueueEmail, | |
[parameter(Mandatory=$false)] | |
[bool]$ShareToPreviousOwnerOnAssign, | |
[parameter(Mandatory=$false)] | |
[string]$TrackingPrefix, | |
[parameter(Mandatory=$false)] | |
[int]$TrackingTokenIdBase, | |
[parameter(Mandatory=$false)] | |
[int]$TrackingTokenIdDigits, | |
[parameter(Mandatory=$false)] | |
[int]$UniqueSpecifierLength, | |
[parameter(Mandatory=$false)] | |
[bool]$UseLegacyRendering, | |
[parameter(Mandatory=$false)] | |
[bool]$UsePositionHierarchy, | |
[parameter(Mandatory=$false)] | |
[bool]$UseSkypeProtocol, | |
[parameter(Mandatory=$false)] | |
[bool]$UseAllowUsersSeeAppdownloadMessage, | |
[parameter(Mandatory=$false)] | |
[string]$DefaultCrmCustomName, | |
[parameter(Mandatory=$false)] | |
[bool]$SuppressSLA, | |
[parameter(Mandatory=$false)] | |
[bool]$IsAuditEnabled, | |
[parameter(Mandatory=$false)] | |
[bool]$AllowLegacyClientExperience | |
) | |
# method body | |
} | |
function Set-CrmUserBusinessUnit { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[guid]$UserId, | |
[parameter(Mandatory=$true, Position=2)] | |
[guid]$BusinessUnitId, | |
[parameter(Mandatory=$false, Position=3)] | |
[guid]$ReassignUserId | |
) | |
# method body | |
} | |
function Set-CrmUserMailbox { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$UserId, | |
[parameter(Mandatory=$false)] | |
[string]$EmailAddress, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[guid]$EmailServerProfile, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[int]$IncomingEmailDeliveryMethod, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[int]$OutgoingEmailDeliveryMethod, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[int]$ACTDeliveryMethod, | |
[parameter(Mandatory=$false, ParameterSetName="Default")] | |
[switch]$ApplyDefaultEmailSettings, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[string]$StateCode, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[string]$StatusCode, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$ScheduleTest, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$MarkedAsPrimaryForExchangeSync, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$ApproveEmail | |
) | |
# method body | |
} | |
function Set-CrmQueueMailbox { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$QueueId, | |
[parameter(Mandatory=$false)] | |
[string]$EmailAddress, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[guid]$EmailServerProfile, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[int]$IncomingEmailDeliveryMethod, | |
[parameter(Mandatory=$false, ParameterSetName="Custom")] | |
[int]$OutgoingEmailDeliveryMethod, | |
[parameter(Mandatory=$false, ParameterSetName="Default")] | |
[switch]$ApplyDefaultEmailSettings, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[string]$StateCode, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[string]$StatusCode, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$ScheduleTest, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$MarkedAsPrimaryForExchangeSync, | |
[parameter(Mandatory=$false, ParameterSetName="Status")] | |
[switch]$ApproveEmail | |
) | |
# method body | |
} | |
function Set-CrmUserManager { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[guid]$UserId, | |
[parameter(Mandatory=$true, Position=2)] | |
[guid]$ManagerId, | |
[parameter(Mandatory=$true, Position=3)] | |
[bool]$KeepChildUsers | |
) | |
# method body | |
} | |
function Set-CrmUserSettings { | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1)] | |
[Alias("UserSettingsRecord")] | |
[PSObject]$CrmRecord | |
) | |
# method body | |
} | |
function Set-CrmRecordAccess { | |
[OutputType([void])] | |
[CmdletBinding()] | |
PARAM( | |
[parameter(Mandatory=$false, Position=0)] | |
[Microsoft.Xrm.Tooling.Connector.CrmServiceClient]$conn, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="CrmRecord", ValueFromPipeline=$true)] | |
[PSObject[]]$CrmRecord, | |
[parameter(Mandatory=$true, Position=1, ParameterSetName="NameWithId")] | |
[string]$EntityLogicalName, | |
[parameter(Mandatory=$true, Position=2, ParameterSetName="NameWithId")] | |
[guid]$Id, | |
[parameter(Mandatory=$true, Position=3)] | |
[Microsoft.Xrm.Sdk.EntityReference]$Principal, | |
[parameter(Mandatory=$true, Position=4)] | |
[Microsoft.Crm.Sdk.Messages.AccessRights]$AccessMask | |
) | |
# method body | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment