SYSTEM$SET_REFERENCE

functionsupportedNative apps, listings & sharing

docs.snowflake.com ↗

System functions

Called by a Snowflake Native App to associate a consumer reference string to a reference definition. The app can use this association to access the consumer object. The reference string passed to this system function is the value returned by the SYSTEM$REFERENCE function, which represents a consumer object. This function only supports a single-valued reference. If an association has already been created using the same reference name, the existing association is overwritten.

Syntax

SYSTEM$SET_REFERENCE('<reference_name>', '<reference_string>')

Parameters

NameRequiredDescription
'reference_name'requiredThe name of the reference as specified in the manifest.yml file of the app.
'reference_string'requiredThe system-generated ID of the reference to the object in the consumer account.

Returns

Returns a VARCHAR value that contains the system-generated alias for the association.