Why am I receiving a stack error when trying to use the "New Files Shared Drive" trigger without the `includeItemsFromAllDrives` parameter option?

This topic was automatically generated from Slack. You can find the original thread here.

Trying to use the “New Files Shared Drive” trigger.

Receive this stack error:

error
Error: The includeItemsFromAllDrives parameter must be set to true when driveId is specified or corpora contains drive or allDrives.
at Gaxios.request (/tmp/_pdg__/dist/code/[REDACTED]/node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/src/gaxios.ts:213:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async OAuth2Client.requestAsync (/tmp/_pdg_/dist/code/[REDACTED]/node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/oauth2client.js:463:20)
at async createAPIRequestAsync (/tmp/_pdg_/dist/code/[REDACTED]/node_modules/.pnpm/googleapis-common@8.0.1/node_modules/googleapis-common/build/src/apirequest.js:308:25)
at async Object.listFilesInPage (file:///tmp/_pdg_/dist/code/[REDACTED]/code/google_drive.app.mjs:636:24)
at async Object.deploy (file:///tmp/_pdg_/dist/code/[REDACTED]/code/sources/new-files-instant/new-files-instant.mjs:83:25)
at async Object.deploy (file:///tmp/_pdg_/dist/code/[REDACTED]/code/sources/new-files-shared-drive/new-files-shared-drive.mjs:68:7)
at async callComponentHooks (/var/task/node_modules/@lambda-v2/component-runtime/src/callComponentHooks.js:31:7)
at async /var/task/node_modules/@lambda-v2/component-runtime/src/deployedComponentMain.js:73:7
at async captureObservations (/var/task/node_modules/@lambda-v2/component-runtime/src/captureObservations.js:28:5)

There is no option for includeItemsFromAllDrives parameter.

Hi I was able to reproduce it. I’ll add this issue to the team’s backlog so we can address it, it’s likely a recent update that now requires this parameter.