Skip to main content

system.kanoa.config.saveConfig

Description

Saves the application configuration settings.

Syntax

saveConfig(configInfo)

Parameters:
  • configInfo (dict)
  • userId (int)

  • Returns:
  • configId (int)
  • msg (string)
  • Dictionary

    ParameterTypeRequiredNotes
    configIdintNone if this is a new record
    configTypeNamestringCan pass in configTypeId or configTypeName
    configTypeIdintCan pass in configTypeId or configTypeName
    configNamestring
    configValuestring

    Code Examples

    # Example Usage:
    userId = 1
    configInfo = {'configTypeName': 'schedule', 'configName': 'shiftTimeOnly', 'configValue': '1'}
    configId, msg = system.kanoa.config.saveConfig(configInfo, userId)