Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query for gsheetdropdown (aka data validation) #40

Open
FISHMANPET opened this issue Mar 18, 2019 · 0 comments
Open

Query for gsheetdropdown (aka data validation) #40

FISHMANPET opened this issue Mar 18, 2019 · 0 comments

Comments

@FISHMANPET
Copy link
Member

Low priority, but if we're going to set and clear dropdown lists, maybe we should be able to get them as well?

$uri = "https://sheets.googleapis.com/v4/spreadsheets/$spreadSheetID`?ranges=$sheetName&includeGridData=true"
$result = Invoke-RestMethod -Method GET -Uri $uri -Headers @{"Authorization"="Bearer $accessToken"}
if($result.sheets[0].data[0].rowData[1].values[2].dataValidation) {write-host "contains validation"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant