Request Preview Record
This operation is part of the Outbound API section of the Web Services API.
Overview
Returns a preview record for the specified campaign.
Request URL | /api/v2/me/outbound-campaigns/<campaign-name> |
---|---|
HTTP Method | POST |
Required Features | api-voice-outbound |
Parameters
Parameter | Value | Required |
---|---|---|
operationName | GetPreviewRecord | Yes |
applicationId | The unique identifier of the Outbound Contact Server application. | Yes |
devicePath | The relative path to the device used for sending the TLib request. | Yes |
referenceId | A unique identifier used to map the API call to the CometD response. If the request contains a referenceId, Web Services sends an acknowledgement or other event with the same reference ID via CometD. | No |
Samples
Request
POST /api/v2/me/outbound-campaigns/Campaign1
{
'devicePath': '/devices/ac7fe6bb-c11d-45a6-a854-807472738ffc',
'operationName': 'GetPreviewRecord',
'applicationId': 134,
'referenceId': '123456789'
}
HTTP Response
{
"statusCode": 0
}
CometD Response
{
'notificationType':'PreviewRecord',
'messageType':'OutboundRecordMessage',
'referenceId': '123456789',
'record':{
'userData':{
'GSW_AGENT_ID':'3001',
'contact_info':'647000',
'GSW_CALL_RESULT':28,
'custom1':'something',
'custom2':0,
'GSW_CALL_ATTEMPT_GUID':'01AJ7BMDBGANF1AABGHAHG5AES000003',
'GSW_TZ_NAME':'PST',
'GSW_CAMPAIGN_GROUP_DBID':42896,
'GSW_CALLING_LIST_DBID':104,
'GSW_APPLICATION_ID':134,
'GSW_CAMPAIGN_GROUP_DESCRIPTION':'',
'GSW_SWITCH_DBID':101,
'GSW_CALLING_LIST':'CallingList1',
'GSW_ATTEMPTS':0,
'GSW_USER_EVENT':'PreviewRecord',
'InteractionSubtype':'OutboundNew',
'GSW_PHONE':'647000',
'GSW_CAMPAIGN_NAME':'Campaign1',
'GSW_TZ_OFFSET':-25200,
'InteractionType':'Outbound',
'GSW_CAMPAIGN_GROUP_NAME':'Campaign1@AgentGroup1',
'GSW_RECORD_HANDLE':4,
'GSW_CONTACT_MEDIA_TYPE':'voice',
'daily_till':86399,
'GSW_CHAIN_ID':1
},
'chainId':1,
'callResult':'Unknown',
'otherFields':{
'GSW_AGENT_ID':'3001',
'GSW_CALLING_LIST_DBID':104,
'contact_info':'647000',
'daily_till':86399,
'GSW_CAMPAIGN_GROUP_DESCRIPTION':'',
'InteractionSubtype':'OutboundNew',
'custom1':'something',
'custom2':0,
'GSW_TZ_NAME':'PST',
'InteractionType':'Outbound',
'GSW_CONTACT_MEDIA_TYPE':'voice',
'GSW_CAMPAIGN_GROUP_NAME':'Campaign1@AgentGroup1',
'GSW_SWITCH_DBID':101,
'GSW_CAMPAIGN_GROUP_DBID':42896
},
'attempts':0,
'phoneNumber':'647000',
'campaignName':'Campaign1',
'devicePath':'/devices/ac7fe6bb-c11d-45a6-a854-807472738ffc',
'callingList':'CallingList1',
'applicationId':134,
'recordHandle':4,
'tzOffset':-25200
},
}
This page was last edited on October 31, 2023, at 13:30.
Comments or questions about this documentation? Contact us for support!