From Bright Pattern Documentation
Jump to: navigation, search
(Created page with "<translate> = getService = Gets the selected service’s data; returns null if the selection is empty. == Request == === Syntax === {| class="wikitable" |<nowiki>getService(...")
 
(Updated via BpDeleteTranslateTags script)
 
Line 1: Line 1:
<translate>
+
 
 
= getService =
 
= getService =
 
Gets the selected service’s data; returns null if the selection is empty.
 
Gets the selected service’s data; returns null if the selection is empty.
Line 74: Line 74:
 
|Returns true if the [[5.8:Contact-center-administrator-guide/ServicesandCampaigns/PropertiesTab#Require%20dispositions|Require dispositions]] setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled
 
|Returns true if the [[5.8:Contact-center-administrator-guide/ServicesandCampaigns/PropertiesTab#Require%20dispositions|Require dispositions]] setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled
 
|}
 
|}
 
 
 
</translate>
 

Latest revision as of 04:01, 29 May 2024

• 5.19


getService

Gets the selected service’s data; returns null if the selection is empty.

Request

Syntax

getService(): Promise<OperationResult<ServiceData | null>>

Where:

type ServiceData = {

   id: string

   name: string

   useDispositions: boolean

   requireDisposition: boolean

}

Parameters

(None)

Example Request

   getServiceButton.onclick = () => {

       adApi.getService()

   }

Return Value

Object Object Values Data Type Optional?

(Y/N)

Value Description
ServiceData
id String N The service’s unique ID
name String N The service’s display name
useDispositions Boolean N Returns true if the Use dispositions setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled
requireDispositions Boolean N Returns true if the Require dispositions setting is enabled in the Contact Center Administrator application; returns false if the setting is not enabled
< Previous | Next >