mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-13 05:47:31 -08:00
⚡ Allow to set custom sheet name
This commit is contained in:
parent
72cf325247
commit
4a43738829
|
@ -196,6 +196,24 @@ export class SpreadsheetFile implements INodeType {
|
||||||
default: false,
|
default: false,
|
||||||
description: 'If the data should be returned RAW instead of parsed.',
|
description: 'If the data should be returned RAW instead of parsed.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Sheet Name',
|
||||||
|
name: 'sheetName',
|
||||||
|
type: 'string',
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
'/operation': [
|
||||||
|
'toFile',
|
||||||
|
],
|
||||||
|
'/fileFormat': [
|
||||||
|
'ods',
|
||||||
|
'xls',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: 'Sheet',
|
||||||
|
description: 'Name of the Sheet in the Spreadsheet.',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -282,7 +300,7 @@ export class SpreadsheetFile implements INodeType {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the data in the correct format
|
// Convert the data in the correct format
|
||||||
const sheetName = 'Sheet';
|
const sheetName = options.sheetName as string || 'Sheet';
|
||||||
const wb: WorkBook = {
|
const wb: WorkBook = {
|
||||||
SheetNames: [sheetName],
|
SheetNames: [sheetName],
|
||||||
Sheets: {
|
Sheets: {
|
||||||
|
|
Loading…
Reference in a new issue