- DarkLight
Data Extraction Configuration
- DarkLight
Using the Data Extract feature, you can extract transactional and master data from the standard data sources. You can configure the application to extract data at specified times/intervals, selected campaigns/groups, and also store the extracted data at specified locations.
This section explains the configurations required for this.
Configure Data Source
Data Source is the list of fields available for selection. There are standard data sources available in the Campaign Manager application. For example, Call Activity is one data source. This data source provides details about call attempts made and the results of these attempts.
To configure a data source, follow the steps:
Add the master entry in the OBD_AE_Extraction_DataSource table to configure data source view or stored procedure name.
INSERT [dbo].[OBD_AE_Extraction_DataSource] ( [DataSourceName], [ViewName], [Dialer], [IsProcedureORView], [ConnectionStringName]) VALUES (N'Call Activity Stored Procedure', N' LCM_HR_CALLActivity ', N'UCCE', 1, N'LCMReportsConnectionString')
The database now shows the following table:
The Campaign Manager application shows the entry in the Reports > Data Extract > Add Data Extract screen:
Add the master entry in the OBD_AE_Extraction_DataSourceColumn table to configure data source column. Use the following query to get the created view ID or the stored procedure in the data source table:
SELECT ID FROM [OBD_AE_Extraction_DataSource] WHERE ViewName = ‘LCM_HR_CALLActivity’
Use the ID and execute the following script:
INSERT [dbo].[OBD_AE_Extraction_DataSourceColumn] ([DataSourceID], [ColumnName], [DisplayName]) VALUES (2, N'CAId', N'UniqueID')
If the DataSourceID is 2, the table looks as below:
The Campaign Manager application shows the entry in the Reports > Data Extract > Add Data Extract screen:
The application displays all the fields for this data source in the Available fields section. You can select the required fields for your Data Extract report and move them to the Selected fields section.
Note:
Reports > Data Extract section of the User Guide contains complete details of setting up the Data Extract, the extracted fields and their descriptions, etc.
Additional Information
When creating a procedure, application uses the following parameter structure:
@i_CampaignId, nvarchar(max)
@i_FromDate, nvarchar(30)
@i_ToDate, nvarchar(30)
@i_IsLastOutcome, int -1 for last outcome, 2 for all outcomes
@i_IsCloseContact, bit - 1 to select closed contacts, 0 for other contacts
@i_selectparameter, nvarchar(max)
@i_IsOpenContact, bit – 1 to select Open contacts, 0 for other contacts (this option is effective 4.2.1.49 release)
Limitation
@i_IsOpenContact is effective 4.2.1.49 release. You cannot use this if your application is running on an earlier version.
Fields
Field | Description |
---|---|
DataSourceName | This field is used whenever you create a new data extract configuration or edit an existing configuration. This Datasource Name appears in the Campaign Manager application. |
ViewName | This field mentions the database view or stored procedure name. |
Dialer | The dialer that is configured for this instance of the Campaign Manager application. |
ConnectionStringName | This field denotes the database (Core or Reports) on which the view or stored procedure is available. Based on the ConnectionStringName, the application refers the appropriate (Core or Reports) database. |
IsProcedureORView | This field is used to identify if the data source is to be fetched from a Database View or a Stored Procedure. The value is 0 if it is a Database View; 1 if it is a Stored Procedure. |
DataSourceID | This field refers the view or stored procedure master entry ID. |
ColumnName | This field refers to the columns in the application database table. |
DisplayName | Display Name is used when you create a new report. The data source selected for the new report is displayed in the application’s Data Extract screen. |