Get D365TableField - FH-Inway/d365fo.tools GitHub Wiki
Get a field from table
Get-D365TableField [-TableId] <Int32> [[-Name] <String>] [[-FieldId] <Int32>] [[-DatabaseServer] <String>]
[[-DatabaseName] <String>] [[-SqlUser] <String>] [[-SqlPwd] <String>] [-IncludeTableDetails]
[<CommonParameters>]
Get-D365TableField [[-Name] <String>] [[-DatabaseServer] <String>] [[-DatabaseName] <String>]
[[-SqlUser] <String>] [[-SqlPwd] <String>] [-SearchAcrossTables] [<CommonParameters>]
Get-D365TableField [[-Name] <String>] [[-FieldId] <Int32>] [[-DatabaseServer] <String>]
[[-DatabaseName] <String>] [[-SqlUser] <String>] [[-SqlPwd] <String>] [-TableName] <String>
[-IncludeTableDetails] [<CommonParameters>]
Get a field either by FieldName (wildcard search allowed) or by FieldId
Get-D365TableField -TableId 10347
Will get all field details for the table with id 10347.
Get-D365TableField -TableName CustTable
Will get all field details for the CustTable table.
Get-D365TableField -TableId 10347 -FieldId 175
Will get the details for the field with id 175 that belongs to the table with id 10347.
Get-D365TableField -TableId 10347 -Name "VATNUM"
Will get the details for the "VATNUM" that belongs to the table with id 10347.
Get-D365TableField -TableId 10347 -Name "VAT*"
Will get the details for all fields that fits the search "VAT*" that belongs to the table with id 10347.
Get-D365TableField -Name AccountNum -SearchAcrossTables
Will search for the AccountNum field across all tables.
Get-D365TableField -TableName CustTable -IncludeTableDetails
Will get all field details for the CustTable table. Will include table details in the output.
The id of the table that the field belongs to
Type: Int32
Parameter Sets: Default
Aliases:
Required: True
Position: 2
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Name of the field that you are looking for
Accepts wildcards for searching. E.g. -Name "Account*"
Default value is "*" which will search for all fields
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: *
Accept pipeline input: False
Accept wildcard characters: False
Id of the field that you are looking for
Type is integer
Type: Int32
Parameter Sets: Default, TableName
Aliases:
Required: False
Position: 4
Default value: 0
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The name of the database server
If on-premises or classic SQL Server, use either short name og Fully Qualified Domain Name (FQDN)
If Azure use the full address to the database server, e.g. server.database.windows.net
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: $Script:DatabaseServer
Accept pipeline input: False
Accept wildcard characters: False
The name of the database
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 6
Default value: $Script:DatabaseName
Accept pipeline input: False
Accept wildcard characters: False
The login name for the SQL Server instance
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
Default value: $Script:DatabaseUserName
Accept pipeline input: False
Accept wildcard characters: False
The password for the SQL Server user
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 8
Default value: $Script:DatabaseUserPassword
Accept pipeline input: False
Accept wildcard characters: False
Name of the table that the field belongs to
Search will only return the first hit (unordered) and work against that hit
Type: String
Parameter Sets: TableName
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Switch options to enable the result set to include extended details
Type: SwitchParameter
Parameter Sets: Default, TableName
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Switch options to force the cmdlet to search across all tables when looking for the field
Type: SwitchParameter
Parameter Sets: SearchByNameForce
Aliases:
Required: True
Position: 3
Default value: False
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.
Tags: Table, Tables, Fields, TableField, Table Field, TableName, TableId
Author: Mötz Jensen (@splaxi)
The cmdlet supports piping and can be used in advanced scenarios. See more on github and the wiki pages.