SetProjectGlobal
  • 1 Minute to read
  • Dark
    Light
  • PDF

SetProjectGlobal

  • Dark
    Light
  • PDF

Article summary

PROTOTYPE

Adds or overwrites a project level variable in the globalManager

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

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

{
  "method": "SetProjectGlobal",
  "key": "a-bool",
  "value": true,
  "project": "Demo"
}
{
  "method": "SetProjectGlobal",
  "key": "a-string",
  "value": "string value",
  "project": "Demo"
}
{
  "method": "SetProjectGlobal",
  "key": "MinRecords",
  "value": 1000000,
  "project": "LargeDataSource"
}

Use GetProjectGlobal to retrieve stored values.


Was this article helpful?

What's Next