Skip to content

Commit

Permalink
fix(Google Drive Trigger Node): Add Shared Drives support (#7369)
Browse files Browse the repository at this point in the history
Github issue / Community forum post (link here to close automatically):

https://community.n8n.io/t/google-drive-node-cant-access-google-shared-drives/8760
  • Loading branch information
elsmr authored and netroy committed Oct 9, 2023
1 parent 489a12d commit 138d26c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { NodeApiError } from 'n8n-workflow';
import { extractId, googleApiRequest, googleApiRequestAllItems } from './v1/GenericFunctions';

import moment from 'moment';
import { fileSearch, folderSearch } from './v1/SearchFunctions';
import { GOOGLE_DRIVE_FILE_URL_REGEX, GOOGLE_DRIVE_FOLDER_URL_REGEX } from '../constants';
import { fileSearch, folderSearch } from './v2/methods/listSearch';

export class GoogleDriveTrigger implements INodeType {
description: INodeTypeDescription = {
Expand Down Expand Up @@ -429,7 +429,12 @@ export class GoogleDriveTrigger implements INodeType {
const event = this.getNodeParameter('event') as string;
const webhookData = this.getWorkflowStaticData('node');
const options = this.getNodeParameter('options', {}) as IDataObject;
const qs: IDataObject = {};
const qs: IDataObject = {
includeItemsFromAllDrives: true,
supportsAllDrives: true,
spaces: 'appDataFolder, drive',
corpora: 'allDrives',
};

const now = moment().utc().format();

Expand Down

0 comments on commit 138d26c

Please sign in to comment.