Jump to: navigation, search
(Created page with "= Configuration namespace = ==Methods== The Configuration namespace includes the following methods: * getOption ===getOption=== {| ! Sign...")
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
= Configuration namespace =
 
= Configuration namespace =
 +
{{NoteFormat|The content on this page is no longer updated. To find the latest content, go to [https://all.docs.genesys.com/PEC-Developer/Current/SCAPI/ConfigurationNamespace Configuration namespace].}}
 
==Methods==
 
==Methods==
 
The Configuration namespace includes the following methods:
 
The Configuration namespace includes the following methods:
Line 70: Line 71:
 
|}
 
|}
 
|}
 
|}
 +
 +
[[Category:V:HTCC:9.0.0DRAFT]]

Latest revision as of 16:58, February 1, 2022

Configuration namespace

Important
The content on this page is no longer updated. To find the latest content, go to Configuration namespace.

Methods

The Configuration namespace includes the following methods:

getOption

Signature <static> getOption(options) → {Array.<Section>}
Description Get configuration options and values for a specific option name or a subset of options from the [interaction-workspace] section or a custom section.
Parameters
Name Type Argument Description
options string An array of configuration options or sections to return. Unless otherwise specified, the API will return options from the [interaction-workspace] section by default. You can specify any of the following:
  • A single option: genesys.wwe.service.configuration.getOption('voice.auto-answer', succeeded, failed)
  • A single option in a specific section: genesys.wwe.service.configuration.getOption('CustomSection/option.custom.customer.code', succeeded, failed)
  • Multiple options: genesys.wwe.service.configuration.getOption(['voice.auto-answer', 'privilege.email.can-mark-done'], succeeded, failed)
  • Multiple options in different sections: genesys.wwe.service.configuration.getOption(['privilege.*', 'CustomSection/option.custom.customer.code'], succeeded, failed)

You can use an asterisk '*' as a wildcard, but only at the end of each word. For example:

  • voice.*
  • voice.auto*
  • sipendpoint.*
  • CustomAPI/test.*

You cannot use an asterisk at the start of an option or section. For example, the following values are not allowed:

  • *.mark-done
  • *.auto
Returns Array.<Section>

Type definitions

The Configuration namespace includes the following object types:

Section

Description Represents the JSON structure of a configuration section. Each section includes a list of key/value pairs for the matching option(s).
Type Object
Properties
Name Type Description
name string The name of the configuration option.
value string or array of strings The value of the configuration option.
This page was last edited on February 1, 2022, at 16:58.
Comments or questions about this documentation? Contact us for support!