Gam adv Sheets Data validation

50 views
Skip to first unread message

Keith Burtt

unread,
Sep 14, 2023, 3:51:18 AM9/14/23
to GAM for Google Workspace
I know this prob cant be done atm but in the sheets is there a wat to create a Data validation rule. I know I can do it with Google Apps script but i would like to do it all in one place. the reason being is I export the data from admin panel to a google sheet with restricted permisions so people can select yes or no the issue is when I write to it it deletes the current data valadation. Any help would be great.

Keith

Keith Burtt

unread,
Sep 16, 2023, 4:38:14 AM9/16/23
to GAM for Google Workspace
I have been using gam user email@mail clear sheetranges id range 'google check!L2:L2000' but it clears values as well as Data valadation any ideas would be great.

Keith

Ross Scroggs

unread,
Sep 17, 2023, 10:12:44 PM9/17/23
to google-ap...@googlegroups.com
Keith,

I'm in California (PDT), I'll be available tomorrow after 10:00AM PDT if you'd like to have a Meet/Zoom session to discuss the issue.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/0e5ea5ce-d375-4f64-aa8d-5a5893bf706an%40googlegroups.com.

Ross Scroggs

unread,
Sep 18, 2023, 12:16:14 AM9/18/23
to google-ap...@googlegroups.com
Keith,

You can use GAM to define Data Validation rules.

$ more YesNo.json 
{
    "requests": [
        {"setDataValidation": {"range": {"sheetId": 0, "startRowIndex": 0, "endRowIndex": 3, "startColumnIndex": 0, "endColumnIndex": 1},
                               "rule": {"condition": {"type": "ONE_OF_LIST", "values": [{"userEnteredValue": "Yes"}, {"userEnteredValue": "No"}]},
                                        "inputMessage": "Enter Yes or No", "strict": "True", "showCustomUi": "False"}
                              }
        }
    ]
}
$ gam user us...@domain.com update sheet <SheetFileID> json file YesNo.json

Ross
----
Ross Scroggs



On Sep 16, 2023, at 1:38 AM, 'Keith Burtt' via GAM for Google Workspace <google-ap...@googlegroups.com> wrote:

Yehuda Alexandroff

unread,
May 20, 2025, 10:46:15 AM5/20/25
to GAM for Google Workspace
Sorry to bring this back up, but is there a way to write a Data Validation rule that uses "Dropdown (from a range)" on another sheet? If so, what would that look like? Here is what I'm looking for:

Screenshot 2025-05-20 at 10.44.56.png
Screenshot 2025-05-20 at 10.45.33.png

Thanks,

Yehuda

Ross Scroggs

unread,
May 20, 2025, 12:31:27 PM5/20/25
to google-ap...@googlegroups.com
It doesn't look like it.
Here is the API dicumentation for data vavidation:

Ross
----
Ross Scroggs


On May 20, 2025, at 7:46 AM, Yehuda Alexandroff <yalexa...@bialik.ca> wrote:

Sorry to bring this back up, but is there a way to write a Data Validation rule that uses "Dropdown (from a range)" on another sheet? If so, what would that look like? Here is what I'm looking for:

<Screenshot 2025-05-20 at 10.44.56.png>
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/c3bdcad9-776a-4a63-be14-9f34cd6d725bn%40googlegroups.com.
<Screenshot 2025-05-20 at 10.44.56.png><Screenshot 2025-05-20 at 10.45.33.png>

Reply all
Reply to author
Forward
0 new messages