Merge pull request #1041 from automatisch/list-shared-drives-for-new-files-in-folder
feat(google-drive): list shared drives for new files in folder trigger
This commit is contained in:
@@ -8,6 +8,25 @@ export default defineTrigger({
|
|||||||
description:
|
description:
|
||||||
'Triggers when a new file is added directly to a specific folder (but not its subfolder).',
|
'Triggers when a new file is added directly to a specific folder (but not its subfolder).',
|
||||||
arguments: [
|
arguments: [
|
||||||
|
{
|
||||||
|
label: 'Drive',
|
||||||
|
key: 'driveId',
|
||||||
|
type: 'dropdown' as const,
|
||||||
|
required: false,
|
||||||
|
description:
|
||||||
|
'The Google Drive where your file resides. If nothing is selected, then your personal Google Drive will be used.',
|
||||||
|
variables: false,
|
||||||
|
source: {
|
||||||
|
type: 'query',
|
||||||
|
name: 'getDynamicData',
|
||||||
|
arguments: [
|
||||||
|
{
|
||||||
|
name: 'key',
|
||||||
|
value: 'listDrives',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Folder',
|
label: 'Folder',
|
||||||
key: 'folderId',
|
key: 'folderId',
|
||||||
|
@@ -13,6 +13,7 @@ const newFilesInFolder = async ($: IGlobalVariable) => {
|
|||||||
fields: '*',
|
fields: '*',
|
||||||
pageSize: 1000,
|
pageSize: 1000,
|
||||||
q,
|
q,
|
||||||
|
driveId: $.step.parameters.driveId,
|
||||||
};
|
};
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Reference in New Issue
Block a user