SetRealmGlobal
  • 1 Minute to read
  • Dark
    Light
  • PDF

SetRealmGlobal

  • Dark
    Light
  • PDF

Article summary

PROTOTYPE

Adds or overwrites a realm level variable in the globalManager

KeyValue(s)Description
method"SetRealmGlobal"Adds or overwrites a realm level variable in the globalManager
key"keyname"variable name.  Required.
value"keyvalue"/true/false/Nvariable value.  Required.  Can be string, bool or integer.

NOTE: SetRealmGlobal requires globalManagerRootPath to be configured in djclient.cnfg

{
  "method": "SetRealmGlobal",
  "key": "a-bool",
  "value": true,
  "project": "Demo"
}
{
  "method": "SetRealmGlobal",
  "key": "a-string",
  "value": "string value",
  "project": "Demo"
}
{
  "method": "SetRealmGlobal",
  "key": "anOtherFlag",
  "value": false,
  "project": "LargeDataSource"
}

Use GetRealmGlobal to retrieve stored values.


Was this article helpful?

What's Next