New-TableButtonCSV
Creates a new table button for exporting data to CSV with customizable options.
Syntax
New-TableButtonCSV [[-ButtonName] <String>] [-DisableBOM] [[-Extension] <String>] [[-FieldBoundary] <String>] [[-FieldSeparator] <String>] [[-FileName] <String>] [[-Title] <String>] [<CommonParameters>]#All Parameter SetsDescription
This function creates a new table button for exporting data to CSV with customizable options. It allows users to specify the button title, file name, and other settings for CSV export.
Examples
EXAMPLE 1
New-TableButtonCSV -Title "Export to CSV" -FileName "data" -FieldSeparator "," -FieldBoundary "'"Description ----------- Creates a new table button with the title "Export to CSV", exports data to a CSV file named "data.csv" with comma as the field separator and single quote as the field boundary.
Parameters
- The text to be displayed on the button. Default value is 'CSV'.
- -DisableBOM SwitchParameter
- Switch to disable Byte Order Mark (BOM) in the exported CSV file.
- -Extension String
- The file extension for the exported CSV file. Default value is '.csv'.
- -FieldBoundary String
- The character used to enclose fields in the CSV file. Default value is '"'.
- -FieldSeparator String
- The separator character for fields in the CSV file. Default value is ';'.
- -FileName String
- The name of the exported CSV file.
- -Title String
- The title to be displayed when hovering over the button.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.