cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
170
Views
0
Helpful
2
Replies

Webex CC Headless Widget: How to Read Attribute Values in script file

uzair.anwar
Level 1
Level 1

I'm currently exploring the Webex CC headless widget and have come across the following configuration in the widget setup:


"headless": {
  "id": "dw-headless",
  "widgets": {
    "comp1": {
      "comp": "agentx-custom-desktop",
      "script": "https://cx-crmconnector.ciscoccservice.com/salesforce/v1.1.9/dist/index.js",
      "attributes": {
        "outDialAni": "<OutDialAniValue>",
        "crmLibPath": "https://cx-crmconnector.ciscoccservice.com/salesforce/v1.1.9/webexcc_salesforce_desktop.min.js",
        "openctiLibPath": "https://cx-crmconnector.ciscoccservice.com/salesforce/v1.1.9/lib/opencti_v48.js,https://cx-crmconnector.ciscoccservice.com/salesforce/v1.1.9/lib/integration.js",
        "nameOfOpenCtiFileName": "opencti_v48.js",
        "isSFDCWidgetEnabled": "false",
        "agentTeamName": "$STORE.agent.teamName"
      }
    }
  }
}

I understand that these headless widgets do not have a visual interface. However, I am trying to figure out how to access the attribute values (like outDialAni, crmLibPath, etc.) in the script file specified in the script property.
Could someone provide guidance or point me to relevant documentation on how to properly read these attribute values inside the script file?

2 Replies 2

Raffaele Lagana
Cisco Employee
Cisco Employee

The "ouDialAni" property allows you to override the Outdial ANI specified, for click to dial. It's an optional field, its default value is the one set on the tenant or Agent Profile.

Looks like you're using the Salesforce connector, there is a detailed Lab for it here, I think it might help.

 

I am currently reviewing the Salesforce connector and would like to know how to read attributes from a headless object from the desktop layout file in a headless script file.
For example, you are reading crmLibPath in the script file located at

https://cx-crmconnector.ciscoccservice.com/salesforce/v1.1.9/dist/index.js

. I am looking for a code sample or guidance on how to read user-defined fields for a headless widget within a script file.