external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/New-TeamViewerDeviceCustomFieldConfiguration.md schema: 2.0.0
Creates a device custom field definition for the company.
New-TeamViewerDeviceCustomFieldConfiguration [-APIToken] <SecureString> [-FieldKey] <String> [[-Description] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Creates a company-level device custom field definition. The API supports up to 50 definitions per company.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the custom field.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAn optional description of the custom field.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseNew-TeamViewerDeviceCustomFieldConfiguration -APIToken $apiToken -FieldKey 'AssetTag' -Description 'Device asset tag'Creates an AssetTag device custom field with a description.
New-TeamViewerDeviceCustomFieldConfiguration -FieldKey 'Location'Creates a Location device custom field without a description.
'AssetTag', 'Location', 'Owner' | ForEach-Object { New-TeamViewerDeviceCustomFieldConfiguration -FieldKey $_ }Creates multiple device custom field definitions in a single pipeline.
Returns the created device custom field definition.