diff --git a/packages/pieces/community/google-forms/src/index.ts b/packages/pieces/community/google-forms/src/index.ts index 879271666e..6991c90040 100644 --- a/packages/pieces/community/google-forms/src/index.ts +++ b/packages/pieces/community/google-forms/src/index.ts @@ -24,7 +24,7 @@ export const googleForms = createPiece({ minimumSupportedRelease: '0.5.0', logoUrl: 'https://cdn.activepieces.com/pieces/google-forms.png', categories: [PieceCategory.FORMS_AND_SURVEYS], - authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud"], + authors: ["kishanprmr","MoShizzle","khaledmashaly","abuaboud","Startouf"], auth: googleFormsAuth, actions: [ createCustomApiCallAction({ diff --git a/packages/pieces/community/google-forms/src/lib/common/common.ts b/packages/pieces/community/google-forms/src/lib/common/common.ts index b8ee7eee63..ef92c120e3 100644 --- a/packages/pieces/community/google-forms/src/lib/common/common.ts +++ b/packages/pieces/community/google-forms/src/lib/common/common.ts @@ -6,11 +6,18 @@ import { } from '@activepieces/pieces-common'; export const googleFormsCommon = { + include_team_drives: Property.Checkbox({ + displayName: 'Include Team Drive Forms', + description: + 'Determines if forms from Team Drives should be included in the results.', + defaultValue: false, + required: false, + }), form_id: Property.Dropdown({ displayName: 'Form', required: true, - refreshers: [], - options: async ({ auth }) => { + refreshers: ['include_team_drives'], + options: async ({ auth, include_team_drives }) => { if (!auth) { return { disabled: true, @@ -26,6 +33,8 @@ export const googleFormsCommon = { url: `https://www.googleapis.com/drive/v3/files`, queryParams: { q: "mimeType='application/vnd.google-apps.form'", + includeItemsFromAllDrives: include_team_drives, + supportsAllDrives: 'true', }, authentication: { type: AuthenticationType.BEARER_TOKEN, diff --git a/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts b/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts index 737a583b5b..d85a5375b0 100644 --- a/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts +++ b/packages/pieces/community/google-forms/src/lib/triggers/new-form-response.ts @@ -21,6 +21,7 @@ export const newResponse = createTrigger({ description: 'Triggers when there is new response', props: { form_id: googleFormsCommon.form_id, + include_team_drives: googleFormsCommon.include_team_drives, }, sampleData: { responseId: