< Back
New-UxTransformationEntry
Post
NAME New-UxTransformationEntry
SYNOPSIS
This cmdlet creates transformation entries in existing transformation table
SYNTAX
New-UxTransformationEntry [[-uxSession] <PSObject>] [-TransformationTableId] <Int32> [-InputFieldType] <Int32>
[-InputFieldValue] <String> [-OutputFieldType] <String> [-OutputFieldValue] <String> [-Description] <String>
[[-MatchType] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
This cmdlet creates transformation entries in existing transformation table.You need to specify the transformation
table where these transformation entries should be created.
PARAMETERS
-uxSession <PSObject>
If using multiple servers you will need to pass the uxSession Object created by connect-uxGateway
Else it will look for the last created session using the command above
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TransformationTableId <Int32>
Enter here the TransformationTableID of the transformation table where you want to add the transformation
entry. This can be extracted using "get-uxtransformationtable" cmdlet
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-InputFieldType <Int32>
Enter here the code (integer) of the Field you want to add, eg:If you want to add "CalledNumber" add 0. Full
information on which codes maps to which field please refer http://bit.ly/SBC-TransfomationCodes
Required? true
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-InputFieldValue <String>
Enter the value which should be matched.eg: If you want to match all the numbers between 2400 - 2659 you would
enter here "^(2([45]\\d{2}|6[0-5]\\d))$"
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputFieldType <String>
Enter here the code (integer) of the Field you want to add, eg:If you want to add "CalledNumber" add 0. Full
information on which codes maps to which field please refer http://bit.ly/SBC-TransfomationCodes
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputFieldValue <String>
Enter here the output of the Input value.eg: If you want to change input of "^(2([45]\\d{2}|6[0-5]\\d))$" to
+44123456XXXX, you would enter here +44123456\\1
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Enter here the Description (Name) of the Transformation entry. This is what will be displayed in the Ribbon GUI
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MatchType <Int32>
Enter here if the Transformation entry you will create will be Mandatory(0) or Optional(1). If this parameter
is not specified the transformation table will be created as Optional
Required? false
Position? 8
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Assume you want to create a new transformation table.
First determine the ID of the transformation table in which you want to create the new transformation entry.
get-uxtransformationtable
This example creates an Optional (default) transformation entry converting Called Number range 2400 - 2659 to
Called Number +44123456XXXX
new-uxtransformationentry -TransformationTableId 6 -InputFieldType 0 -InputFieldValue '^(2([45]\\d{2}|6[0-5]\\d))$'
-OutputFieldType 0 -OutputFieldValue '+44123456\\1' -Description "ExtToDDI"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>This example creates an Optional transformation entry converting Calling Number beginning with 0044xxxxxx
to Calling Number +44xxxxxx
new-uxtransformationentry -TransformationTableId 3 -InputFieldType 3 -InputFieldValue '00(44\\d(.*))'
-OutputFieldType 3 -OutputFieldValue '+\\1' -Description "UKCLIToE164"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>This example creates a Mandatory CLI (Calling Number)passthrough
new-uxtransformationentry -TransformationTableId 9 -InputFieldType 3 -InputFieldValue '(.*)' -OutputFieldType 3
-OutputFieldValue '\\1' -Description "PassthroughCLI" -MatchType 0
RELATED LINKS
For Input/Output Field Value Code mappings, please refer to http://bit.ly/SBC-TransfomationCodes
SYNOPSIS
This cmdlet creates transformation entries in existing transformation table
SYNTAX
New-UxTransformationEntry [[-uxSession] <PSObject>] [-TransformationTableId] <Int32> [-InputFieldType] <Int32>
[-InputFieldValue] <String> [-OutputFieldType] <String> [-OutputFieldValue] <String> [-Description] <String>
[[-MatchType] <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
This cmdlet creates transformation entries in existing transformation table.You need to specify the transformation
table where these transformation entries should be created.
PARAMETERS
-uxSession <PSObject>
If using multiple servers you will need to pass the uxSession Object created by connect-uxGateway
Else it will look for the last created session using the command above
Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-TransformationTableId <Int32>
Enter here the TransformationTableID of the transformation table where you want to add the transformation
entry. This can be extracted using "get-uxtransformationtable" cmdlet
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-InputFieldType <Int32>
Enter here the code (integer) of the Field you want to add, eg:If you want to add "CalledNumber" add 0. Full
information on which codes maps to which field please refer http://bit.ly/SBC-TransfomationCodes
Required? true
Position? 3
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-InputFieldValue <String>
Enter the value which should be matched.eg: If you want to match all the numbers between 2400 - 2659 you would
enter here "^(2([45]\\d{2}|6[0-5]\\d))$"
Required? true
Position? 4
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputFieldType <String>
Enter here the code (integer) of the Field you want to add, eg:If you want to add "CalledNumber" add 0. Full
information on which codes maps to which field please refer http://bit.ly/SBC-TransfomationCodes
Required? true
Position? 5
Default value
Accept pipeline input? false
Accept wildcard characters? false
-OutputFieldValue <String>
Enter here the output of the Input value.eg: If you want to change input of "^(2([45]\\d{2}|6[0-5]\\d))$" to
+44123456XXXX, you would enter here +44123456\\1
Required? true
Position? 6
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Description <String>
Enter here the Description (Name) of the Transformation entry. This is what will be displayed in the Ribbon GUI
Required? true
Position? 7
Default value
Accept pipeline input? false
Accept wildcard characters? false
-MatchType <Int32>
Enter here if the Transformation entry you will create will be Mandatory(0) or Optional(1). If this parameter
is not specified the transformation table will be created as Optional
Required? false
Position? 8
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Assume you want to create a new transformation table.
First determine the ID of the transformation table in which you want to create the new transformation entry.
get-uxtransformationtable
This example creates an Optional (default) transformation entry converting Called Number range 2400 - 2659 to
Called Number +44123456XXXX
new-uxtransformationentry -TransformationTableId 6 -InputFieldType 0 -InputFieldValue '^(2([45]\\d{2}|6[0-5]\\d))$'
-OutputFieldType 0 -OutputFieldValue '+44123456\\1' -Description "ExtToDDI"
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>This example creates an Optional transformation entry converting Calling Number beginning with 0044xxxxxx
to Calling Number +44xxxxxx
new-uxtransformationentry -TransformationTableId 3 -InputFieldType 3 -InputFieldValue '00(44\\d(.*))'
-OutputFieldType 3 -OutputFieldValue '+\\1' -Description "UKCLIToE164"
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>This example creates a Mandatory CLI (Calling Number)passthrough
new-uxtransformationentry -TransformationTableId 9 -InputFieldType 3 -InputFieldValue '(.*)' -OutputFieldType 3
-OutputFieldValue '\\1' -Description "PassthroughCLI" -MatchType 0
RELATED LINKS
For Input/Output Field Value Code mappings, please refer to http://bit.ly/SBC-TransfomationCodes