Class DataSourceParameter  |  Apps Script  |  Google for Developers (original) (raw)

Class DataSourceParameter

DataSourceParameter

Access existing data source parameters.

Only use this class with data that's connected to a database.

Detailed documentation

getName()

Gets the parameter name.

Return

String — The parameter name.


getSourceCell()

Gets the source cell the parameter is valued based on, or null if the parameter type is not [DataSourceParameterType.CELL](/apps-script/reference/spreadsheet/data-source-parameter-type#CELL).

Return

String|null — The source cell, as specified in A1 notation.


getType()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-11 UTC.