external help file | Module Name | online version | schema |
---|---|---|---|
SPClientCore.dll-Help.xml |
SPClientCore |
2.0.0 |
Creates a new column of calculated type.
Add-KshColumnCalculated [-List] <List> [-ClientSideComponentId <String>]
[-ClientSideComponentProperties <String>] -Columns <Column[]> [-CurrencyLcid <UInt32>]
[-CustomFormatter <String>] [-DateFormat <ColumnDateTimeFormatType>] [-Description <String>]
[-Direction <String>] -Formula <String> [-Group <String>] [-Hidden <Boolean>] [-Id <Guid>] [-JSLink <String>]
-Name <String> [-NoCrawl <Boolean>] [-NumberFormat <Int32>] -OutputType <ColumnType>
[-ShowAsPercentage <Boolean>] [-StaticName <String>] [-Title <String>] [-AddToDefaultContentType]
[-AddToNoContentType] [-AddToAllContentTypes] [-AddColumnInternalNameHint] [-AddColumnToDefaultView]
[-AddColumnCheckDisplayName] [-AddToDefaultView] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Add-KshColumnCalculated [-ClientSideComponentId <String>] [-ClientSideComponentProperties <String>]
-Columns <Column[]> [-CurrencyLcid <UInt32>] [-CustomFormatter <String>]
[-DateFormat <ColumnDateTimeFormatType>] [-Description <String>] [-Direction <String>] -Formula <String>
[-Group <String>] [-Hidden <Boolean>] [-Id <Guid>] [-JSLink <String>] -Name <String> [-NoCrawl <Boolean>]
[-NumberFormat <Int32>] -OutputType <ColumnType> [-ShowAsPercentage <Boolean>] [-StaticName <String>]
[-Title <String>] [-AddToDefaultContentType] [-AddToNoContentType] [-AddToAllContentTypes]
[-AddColumnInternalNameHint] [-AddColumnToDefaultView] [-AddColumnCheckDisplayName] [-AddToDefaultView]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Add-KshColumnCalculated [-ClientSideComponentId <String>] [-ClientSideComponentProperties <String>]
-Columns <Column[]> [-CurrencyLcid <UInt32>] [-CustomFormatter <String>]
[-DateFormat <ColumnDateTimeFormatType>] [-Description <String>] [-Direction <String>] -Formula <String>
[-Group <String>] [-Hidden <Boolean>] [-Id <Guid>] [-JSLink <String>] -Name <String> [-NoCrawl <Boolean>]
[-NumberFormat <Int32>] -OutputType <ColumnType> [-ShowAsPercentage <Boolean>] [-StaticName <String>]
[-Title <String>] [-WhatIf] [-ProgressAction <ActionPreference>] [<CommonParameters>]
The Add-KshColumnCalculated adds creates new calculated column to the current site or the specified list.
PS C:\> Add-KshColumnCalculated -Name 'CalculatedColumn' -Columns (Get-KshColumn -Identity 'TextColumn') -Formula '=TextColumn' -OutputType 'Text'
Creates a new column.
Specifies whether to confirm that no other column has the same display name.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether to add an internal column name hint for the purpose of avoiding possible database locking or column renaming operations.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether a new column that is added to the specified list is also be added to the default list view.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether a new column that is added to the specified list is also be added to all content types in the site collection.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether a new column that is added to the list is also be added to the default content type in the site collection.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether to add a column to the default view.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether a new column is not be added to any content type.
Type: SwitchParameter
Parameter Sets: ParamSet1, ParamSet2
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the ID of the client-side component.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the JSON string that the propeties of the client-side component.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the columns
Type: Column[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the locale ID. This parameter is used when OutputType is 'Currency'. For more information, see reference (https://docs.microsoft.com/ja-jp/openspecs/windows_protocols/ms-lcid/70feba9f-294e-491e-b6eb-56532684c37f).
Type: UInt32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the JSON string of custom format.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the datetime display format. This parameter is used when OutputType is 'DateTime'.
Type: ColumnDateTimeFormatType
Parameter Sets: (All)
Aliases:
Accepted values: DateOnly, DateTime
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the description.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the direction.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the formula.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the name for grouping.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Hidden
Specifies whether to hide the column from users.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the ID.
Type: Guid
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the JSLink URL.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the list.
Type: List
Parameter Sets: ParamSet1
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the name.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies whether to suppress to search crawling.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the number of decimals. This parameter is used when OutputType is 'Currency' or 'Number'.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the data type of the return value.
Type: ColumnType
Parameter Sets: (All)
Aliases:
Accepted values: Invalid, Integer, Text, Note, DateTime, Counter, Choice, Lookup, Boolean, Number, Currency, URL, Computed, Threading, Guid, MultiChoice, GridChoice, Calculated, File, Attachments, User, Recurrence, CrossProjectLink, ModStat, Error, ContentTypeId, PageSeparator, ThreadIndex, WorkflowStatus, AllDayEvent, WorkflowEventType, Geolocation, OutcomeChoice, Location, Thumbnail, MaxItems
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a value whether the column shows as percentage. This parameter is used when OutputType is 'Number'.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the static name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the title.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: ParamSet3
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.