InoDrive / UserApp / getVariablesList


InoDrive.UserApp.getVariablesList()

Get the Variables in the User Application that are set to API accessibility (they are set in InoWorx Programmer as Read, Read/Write, None)

Arguments:
Access (Number), this is one of the properties of the variables set in the InoWorx Programmer, No Access (1), Read(2), Read/Write(3)

Returns: variables (Array) of all variables in the user’s application which share the access value

// Import InoDrive API Library
import { InoDriveApiJS }  from "ck-inodrive-api" 

// Instatiate the API
let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false })

// Instantiate InoDrive Object
let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true })

// Retrieve List of All Read, Read/Write Variable Names
Drive.UserApp.getVariablesList()

// or Use the Access Number to Specifically Pull Read or Read/Write Variables
Drive.UserApp.getVariablesList(3)