Appreciate some help please. This is so basic - I must be doing something wrong. I have spent about an hour and half checking documentation and youtube - none of which seem to help. I am a newbie.
I have created a google sheet node and connected using the oauth2 option. The problem: The sheets in my google drive are not displayed in the “Document / From list field”
I have tried pasting a URL to the sheet but then the tab names do not display in the “Sheet / From list” field. I type a tab name then the columns do not appear.
My Google account indicates n8n has access.
I have upgraded to the latest stable version 1.62.5 ( on n8n cloud) but this has not helped.
Hey @diggooddog , you need to have “Cloud Resource Manager API” enabled in your app. Also, bear in mind that it still should work when selecting the document by URL or ID. It is just to be able to list the docs you need “Cloud Resource Manager API” enabled.
I tried your suggestion but the list still doesnt display. To be honest I dont need the list to display if pasting the URL works. I tried pasting the document URL and entering the sheet name then tested the step and got an error “The resource you are requesting could not be found” as follows:
I noticed in the docs here that there are the following steps. I cannot do any of them as the fields do not display in the credential screens in n8n. Is this the source of the problem?:
From your n8n credential, copy the OAuth Redirect URL. Paste it into the Authorized redirect URIs in Google Console.
From Google’s OAuth client created modal, copy the Client ID. Enter this in your n8n credential.
From the same Google modal, copy the Client Secret. Enter this in your n8n credential.
Hey @diggooddog , looks like permissions issue. Ensure you have also enabled Google Sheets API and Google Drive API in addition to Cloud Resource Manager API.
Hi @ihortom yes I agree I think its permission’s related. I created a credential for Gmail today, I could follow all steps and it works fine.
Interestingly there is another credential type for Google Sheets called “Google Sheets Trigger account OAuth API” and this has the extra fields (OAuth Redirect URL, Client ID, Client Secret). These fields do not appear in the “Google Sheets OAuth API” credential. Screen shots below. I am using the “Google Sheets OAuth API” credential and think that’s why this is not working.
a) Is this a bug?
b) When should the “Google Sheets Trigger account OAuth API” be used versus “Google Sheets OAuth API”?
Thanks
Screen for “Google Sheets Trigger account OAuth API”:
Problem solved: When signing in to Google sheets I thought only the following access was required: “See, edit, create and delete only the specific Google Drive files that you use with this app” I tried selecting all 3 access services and this solved the problem.
Might be worth updating the docs in case it helps others:
a) To say that it is intentional that the 3 fields (OAuth Redirect URL, Client ID, Client Secret) will not display in the Google sheet credential on n8n cloud, and
b) To say that all 3 access services are required when signing in to Google for the Google sheet node