feat(google-drive): list shared drives for new folders trigger

This commit is contained in:
Rıdvan Akca
2023-04-06 18:29:24 +03:00
parent 14ba50f061
commit 43184dccda
2 changed files with 20 additions and 0 deletions

View File

@@ -8,6 +8,25 @@ export default defineTrigger({
description:
'Triggers when a new folder is added directly to a specific folder (but not its subfolder).',
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',
key: 'folderId',

View File

@@ -14,6 +14,7 @@ const newFolders = async ($: IGlobalVariable) => {
fields: '*',
pageSize: 1000,
q,
driveId: $.step.parameters.driveId,
};
do {