Skip to main content

getVariableById

DEPRECATED: Use getVariableByIdAsync instead. This function will throw an exception if the plugin manifest contains "documentAccess": "dynamic-page".

Finds a variable by ID. If not found or the provided ID is invalid, returns null.

Signature​

getVariableById(id: string): Variable | null

Parameters​

id​

The variable ID to search for, which represents a unique identifier for the variable.