User Global Variable Updated

Triggered when a user global variable has been updated
Preview
Preview

Parameters

Variable Name
Text

Enter the name of a specific user global variable

Leave empty to trigger on any user global variable.

Persistedrequired
Select
default:Either
  • Either - Trigger on both persisted and non-persisted variables
  • Yes - Trigger only on persisted variables
  • No - Trigger only on non-persisted variables
User Login
Text

Enter the username of a specific user

Leave empty to trigger on any username

Platform
Select
  • Any - Trigger on variable updates for all platforms
  • Trovo - Only trigger on Trovo user variable updates
  • Twitch - Only trigger on Twitch user variable updates
  • VStream - Only trigger on VStream user variable updates
  • YouTube - Only trigger on YouTube user variable updates

Variables

The following variables will be populated when this trigger executes:

Description
global.lastWriteDateTime

The timestamp of the last write

Example: 8/4/2023 10:56:06 AM
global.namestring

The name of the global variable

Example: myGlobalVariable
global.newValuestring

The new value of the global variable

Example: My new value
global.oldValuestring

The previous value of the global variable

Example: My old value
global.persistedbool

Is this global variable persisted?

Example: true
global.userIdstring

The unique platform ID of the user

Example: 123456789
global.userLoginstring

The username of the user

Example: cooluser420
global.userNamestring

The disply name of the user

Example: CoolUser420
global.userTypestring

The platform of the user:
twitch, youtube, trovo, vstream

Example: twitch