# fsVarsGetOVarId The **fsVarsGetOVarId** function can be used to get an existing `OVar`.   ##### Syntax ``` wasm FsLVarId fsVarsGetOVarId( const char* name, const char* componentPath, FsObjectId target ); ```   ##### Parameters
ParametersDescription
name

The name of the variable.

componentPath

The path of the component.

The path format is:

  • path:to:component

or

  • path:to:component@alias

Note that the alias is not mandatory but is recommended for performance issue and to avoid conflicts.

target

The ID of the object from which the variable is being retrieved.

  ##### Return Values The function returns the ID associated with the given variable name. If the given name has *not* been registered, the function will return `FS_VAR_INVALID_ID`. If an error occurred, the function will return `FS_VAR_INVALID_ID`.   ##### Remarks `OVar` are local to an *instrument*, and the variable (and therefor the ID) will be different for each component.   ##### Example ``` wasm FsOVarId oVarId = fsVarsGetOVarId("TOTO", "LIGHTING:PANEL_EMISSIVE"); ```