Skip to content

PureCloudCreateContactList

Element Name: Outbound / Pure Cloud Create Contact List

Category: Genesys Cloud

Description: Advanced functionality composed of an input field for structuring JavaScript code. It has a customizable name and a set of configurable parameters for creating contact lists for outbound campaigns in Genesys Cloud.

Functionality: Allows you to create a contact list for an outbound campaign in Genesys Cloud, obtaining all the data related to those lists and details of the records through an integration with the Genesys Cloud REST API. For more details on these Genesys Cloud APIs, visit Genesys Cloud Documentation.

PureCloudCreateContactList Action Configuration Fields

[Name]: Unique configuration box descriptor for identification purposes in the flow.

Configuration subset

[ClientID]: GUID field indicating the Client Id of the Genesys Cloud API to create a connection token.

[Token]: Alphanumeric string field in which the client's creation token or secret for the connection to Genesys Cloud must be indicated.

[Expression to Evaluate]: Expression string field in which the JSON containing all the fields required by the API to create the campaign list must be entered. For details of the API schema, see the following URL Outbound APIs (genesys.cloud) under POST /api/v2/outbound/contactlists.

[The name of the entity where to store the result obtained from an expression or service]: String field. Here, the name of the entity where the result obtained from an expression or service will be stored must be entered. The entity must be previously created.

[The intent to execute in case of error]: Selection box where the intent that will be activated in case of an error in the Force Execution of Cases action is identified. When an error overflow occurs, the Force_Execution_Case_Error entity will be loaded with the error details if it is available.

Example Implementation of Pure Cloud Create Contact List

-- Input:

  • Expression to Evaluate: Json

    {
    "name": "clienteLista_001",
    "version": 0,
    "division": {
        "id": "",
        "name": "home",
        "selfUri": ""
    },
    "columnNames": ["test"],
    "phoneColumns": [
        {
            "columnName": "test",
            "type": "TEXT",
            "callableTimeColumn": "test"
        }
    ],
    "previewModeColumnName": "",
    "previewModeAcceptedValues": ["test"],
    "attemptLimits": {
        "id": "",
        "name": "test",
        "selfUri": ""
    },
    "automaticTimeZoneMapping": false,
    "zipCodeColumnName": "",
    "columnDataTypeSpecifications": [
        {
            "columnName": "test",
            "columnDataType": "TEXT",
            "min": 0,
            "max": 0,
            "maxLength": 0
        }
    ]
    }
    
  • The name of the entity where to store the result obtained from an expression or service: createdCampaign

-- Output:

createdCampaign <--

{

    "id": "69707b68-6590-4bef-b03d-3a8320490187",
    "name": " clienteLista_001",
    "dateCreated": "2022-12-20T14:00:46.434Z",
    "version": 1,
    "division": {
        "id": "59324a6c-1e89-4608-898c-3d80de90db1b",
        "name": "Home",
        "selfUri": "/api/v2/authorization/divisions/59324a6c-1e89-4608-898c-3d80de90db1b"
    },
    "columnNames": [
        "test"
    ],
    "phoneColumns": [
        {
        "columnName": "test",
        "type": "TEXT",
        "callableTimeColumn": "test"
        }
    ],
    "previewModeColumnName": "",
    "previewModeAcceptedValues": [
        "test"
    ],
}