SYSTEM$GET_REFERENCED_OBJECT_ID_HASH
functionpartialNative apps, listings & sharingReturns the hash of the entity ID of the consumer object currently resolved by the reference. This function is useful for an app to determine whether the object bound to a reference has changed. The app can save the value and then compare the current value to the previously known value.
Syntax
supportedpartialnot supportednot scored
SYSTEM$GET_REFERENCED_OBJECT_ID_HASH('<reference_name>'[, '<alias>'])
Parameters
| Name | Required | Description |
|---|---|---|
'reference_name' | required | The name of the reference as specified in the manifest.yml file of the app. |
'alias' | optional | The system-generated alias of the association. This argument is required for a multi-valued reference. To get the aliases of the associations for a reference, call SYSTEM$GET_ALL_REFERENCES. |
Returns
Returns a VARCHAR value that contains the hexadecimal-encoded SHA-256 hash of the identifier of the consumer object.
Usage notes
- The hash identifies the object, not its data. Changing rows in the same table doesn’t change the object identifier. Replacing the table with a different table of the same name changes the identifier and therefore the hash.
Known gaps
- '<alias>' is not exercised by any test