CSV Export Module

Guide to Export Management and CRM Module Field Mapping

Introduction

Introduction

Presentation

The plugin is an advanced tool for exporting data in CSV format, designed to simplify and automate the extraction of information from multiple database tables. It provides an intuitive interface that allows users to easily configure export options, customize data formats, and map fields according to their specific needs.

image-1756456098486.png

A step-by-step wizard guides users through the entire configuration process, ensuring a smooth and professional experience even for non-technical users.

Introduction

Usage Requirements

To use the CSV Export Module, the plugin must be properly installed and activated within the vtenext environment.
At the end of the installation process, it is essential to verify that no errors occurred and that the plugin appears as active in the Installed Modules section. An incomplete installation or a disabled plugin will prevent the export process from functioning correctly.

It is also necessary to ensure that the folder storage/CSVExporter/ has the appropriate write permissions. Otherwise, the system will not be able to generate or save the exported CSV files.

Finally, some basic user knowledge is required, particularly in the following four areas:

  1. CRM module knowledge: understanding the structure of the modules to be exported, the types of fields used, relationships between entities, and business logic.

  2. CSV format basics : familiarity with field separators (;, ,), text delimiters ("), line endings, and compatibility with software such as Excel, LibreOffice, or Google Sheets.

  3. Character encoding management: using UTF-8 encoding to ensure correct display of accents, symbols, and special characters in exported files.

  4. File organization: managing folder structures, applying consistent file naming, and implementing backup strategies to maintain order and data security.

Plugin License Management

The behavior of the VTE plugin license management varies depending on the installation status and the validity of the current license.

Plugin License Management

First Installation

When the plugin is installed for the first time, or when no valid license is available, the system requires the user to enter a license key in order to enable the module’s features.

License Entry Screen
The system displays a dedicated screen with the following elements:

image-1756456315615.png

Verification Process

  1. Enter the license key in the designated field

  2. Click the green VERIFY button

  3. The system automatically validates the key

  4. If the key is valid, the plugin is activated

  5. If the key is invalid, an error message is displayed

Plugin License Management

Existing Installation with License

When the plugin is already installed and a license is present (whether valid or expired), the interface provides advanced license management options through dedicated buttons available on the homepage.

image-1756456438086.png

“Update License” Button

License Update Window
When the user clicks Update License, the system displays a modal window with the following elements:

image-1756456467871.png

The system automatically detects the license status and, in case of an error or expired license, displays an error message.

Basic Information – Homepage

Step 1 wizard

Basic Information – Homepage

Module Management from Homepage

The Homepage serves as the primary control center for managing all CSV export configurations. This interface provides a comprehensive overview of all configured modules and delivers immediate access to the plugin's core functionality.

image-1756456788324.png

Configured Module Display

The homepage displays all previously configured export modules, organized in information cards that show:

Important: Changes are permanently applied only after completing the entire wizard process and clicking "SAVE" in the final step. Until that point, all modifications can be canceled without affecting the existing configuration.

Basic Information – Homepage

Adding a Module

Creating New Configurations

To create a new export configuration, the homepage provides the "ADD MODULE" button:

image-1756456870319.png

  1. Click the green "ADD MODULE" button
  2. The system automatically opens the 5-step configuration wizard
  3. The wizard guides you through all configuration aspects:
    • CRM module selection for export
    • Field definition for inclusion
    • Format and separator configuration
    • Filter setup and advanced options
    • Configuration save for future use
Basic Information – Homepage

Managing Existing Modules

Two main actions are available for each configured module:

image-1756456957255.png

  1. "Edit" button: provides access to the configuration wizard to modify the existing configuration. This function allows you to:
    • Update fields to be exported
    • Modify filters and selection criteria
    • Change formatting options
    • Adjust the module's export logic

  2. "DELETE" button: permanently removes the selected configuration. To ensure data security, the system implements a confirmation procedure that:
    • Displays a warning message before deletion
    • Requires explicit user confirmation
    This prevents accidental deletions and informs that already exported CSV files will be removed.


    image-1756456969826.png

Basic Information – Homepage

Modifying Existing Configurations

Modifying Existing Configurations

To modify an already created configuration, the process is equally intuitive:

Modification Procedure:

  1. Locate the module to be modified in the homepage list
  2. Click the "EDIT" button corresponding to the desired module
  3. The system will automatically load the current configuration into the wizard
  4. The wizard allows you to modify all configuration aspects:
    • Add or remove fields from the export
    • Change separators, date formats, and numeric options
    • Modify file name, description, or destination folder
    • Adjust filters and selection criteria

 

Claude può commettere errori.
Verifica sempre le risposte con attenzione.

Export File Configuration

Step 2 Wizard

Export File Configuration

Export Settings

The second step of the wizard represents the core of technical configuration, where all parameters that determine how data will be extracted, formatted, and saved in the final CSV file are defined. This section is divided into several thematic areas that allow granular control over every aspect of the export:

  1. Data Format Type
  2. Character Encoding
  3. Date Format
  4. Numeric Precision
  5. Write Mode
  6. Text Delimiter
  7. Separation Configurations
  8. Output File/Folder Management

image-1756457295887.png

Export File Configuration

Data Format Type

The Export Type field offers two distinct modes for extracting and formatting data from the database:

image-1756458034809.png

The choice between these two modes depends on the final use of the CSV file: use "raw" for technical processing and "pretty" for reports and analysis intended for direct consultation.

Export File Configuration

Character Encoding

Character Encoding

The "Encoding" field determines the character set used to save the CSV file, directly affecting the compatibility and readability of exported data. The system offers four main options:

image-1756458130188.png

Recommendation: For most use cases, especially in Italian contexts, UTF-8 is recommended for its universality and compatibility with modern software. Use alternative encodings only in specific cases of legacy system compatibility.

Export File Configuration

Date Format

The "Date Format" field defines how dates will be represented in the exported CSV file. The system offers five distinct formats to adapt to different geographical needs and software compatibility requirements.

image-1756458180357.png

The "d-m-Y" (day-month-year) format standardizes date representation according to the European format. This setting ensures consistency in date display and facilitates data processing by analysis software or spreadsheets configured for the Italian format.

Export File Configuration

Numeric Precision

The "Decimal Numbers" field controls the numeric precision of all decimal values in the exported CSV file. The system offers five precision levels, from 1 to 5 decimal places:

image-1756458311670.png

Two decimal places represent the ideal compromise for most business CSV exports, ensuring precise data without unnecessarily increasing file size or compromising readability.

Export File Configuration

Write Mode

The "Write Mode" field determines system behavior when a CSV file with the same name already exists in the destination folder. The system offers two distinct approaches:

image-1756458361123.png

  • Overwrite: represents the complete replacement approach.
    • Advantages:
      • Always ensures updated and consistent data
      • Prevents accumulation of duplicate files
      • Maintains clean folder organization
    • Disadvantages:
      • Permanent loss of the previous version
      • Inability to recover historical data
    • Ideal usage: Recurring exports where only the most recent version is needed
  • Append: adds new data to the existing file, with new records queued at the end of the existing file.
    • Advantages:
      • Preserves all historical data
      • Creates a cumulative archive over time
      • Allows trend analysis and temporal comparisons
    • Disadvantages:
      • Possible data duplication
      • Files growing in size over time
      • Need to manage multiple headers
    • Ideal usage: Activity logs, historical archives, incremental data collection
Export File Configuration

Text Delimiter

The "Text Delimiter" field defines the character used to enclose text fields in the CSV file, ensuring correct data interpretation even when they contain special characters. The system offers three main options:

image-1756458421896.png

  • Double Quotes (") - Recommended Double quotes represent the international standard for CSV files:
    • Example: "Mario Rossi","Via Roma, 123","Milano"
    • Advantages:
      • Universal standard recognized by all software
      • Protects fields containing commas (field separator)
      • Correctly handles text with leading/trailing spaces
      • Guaranteed compatibility with Excel, LibreOffice, Google Sheets
    • Usage: Recommended for all standard exports
  • Single Quotes (') Single quotes offer a less common alternative:
    • Example: 'Mario Rossi','Via Roma, 123','Milano'
    • Advantages:
      • Useful when text frequently contains double quotes
      • Reduces the need for character escaping
    • Disadvantages:
      • Less compatible with standard software
      • May cause interpretation issues
    • Usage: Only in specific cases or for compatibility with particular systems
  • No Delimiter The no delimiter option eliminates any protection character:
    • Example: Mario Rossi,Via Roma 123,Milano
    • Advantages:
      • Lighter and more compact files
      • Faster processing
    • Disadvantages:
      • Serious problems if data contains the field separator
      • Loss of precision with leading/trailing spaces
      • Incompatibility with many standard software applications
    • Usage: Not recommended; use only if certain that data contains no problematic characters

Recommendation: Always use double quotes (") to ensure maximum compatibility and data protection, especially in the presence of complex text or addresses containing commas.

Export File Configuration

Separation Configurations

Separation Configurations

This section controls the characters used to structure and organize data in the CSV file, defining how fields, rows, and multiple values are separated.

image-1756458481447.png

"Field Separator": defines the character that divides columns in the CSV file:

Row Separator: determines the character that indicates the end of each record:

Multiselect Picklist Separator: handles fields that can contain multiple values:

Practical Usage Examples

Multiselection field "Product Categories":

Recommendation: Use comma (,) as field separator, LF (\n) as row separator, and double pipe (||) for multiselections to ensure maximum compatibility and clarity in data structure.

 

Export File Configuration

Output File/Folder Management

This section defines settings for output file management, including destination, notifications, and naming of the final CSV file.

image-1756458526326.png

Field Mapping

Step 3 Wizard

Field Mapping

Mapping - Introduction

The third step defines the correspondence between VTE module fields and the columns that will appear in the final CSV file. This phase is crucial for determining which information will be exported and how it will be structured.

image-1756474666385.png

The mapping interface is organized into two main columns that work together in a coordinated manner:

Left Column - VTE Field This section displays the available fields in the selected module, with specific characteristics:

Right Column - CSV Field This section defines how fields will appear in the output file:

Field Mapping

Mapping Types

The system supports different mapping types to adapt to specific needs:

Dynamic Fields Dynamic fields represent real data extracted from the database:

Fixed Values Fixed values allow inserting static information in every row:

Field Mapping

Mapping Management

Field mapping is handled through:

Field Selection:

Column Name Customization

Mapping Removal

Practical Mapping Examples

Scenario 1 - Contact Export

Tip: Start with essential mapping including only indispensable fields, then gradually expand by adding additional fields based on specific project requirements.

 

Field Mapping

Dynamic Mapping Field Management

The system offers the ability to dynamically expand the configuration through the "+ ADD FIELD" button, which represents a fundamental tool for advanced export customization. When this button is clicked, the system immediately adds a new blank mapping row at the end of the existing list, allowing inclusion of additional fields that may not have been considered in the initial configuration.

 

image-1756474930012.png

Product Block - Special Configuration

Step 4 wizard

Product Block - Special Configuration

Product Block Activation

The fourth step of the wizard is activated exclusively when the "Product Block" field has been selected in field mapping (Step 3). This step represents a specialized configuration that handles the complexity of product data, requiring additional settings to define how associated product information should be structured in the final CSV file.

If the "Product Block" field has not been included in the mapping, the wizard proceeds directly from Step 3 to Step 5 (Configuration Save), completely skipping this phase.

 

image-1756475007022.png

image-1756475018175.png

Product Block - Special Configuration

Advanced Product Block Configuration

The screen maintains the same mapping structure as Step 3, but focuses exclusively on product-related fields. The system presents all available fields for products of the selected module, allowing targeted selection of information to export.

image-1756475096001.png

The interface again presents the two main columns working in coordination:

image-1756475105139.png

VTE Field Column: Displays the specific product block fields available in the system, such as "Subject," "Product Block," "Type," "Header," and other product-specific attributes.

CSV Field Column: Allows defining how these product fields will appear in the final CSV file, with the ability to fully customize column names.

The system implements an intelligent field inheritance mechanism: when a main field containing sub-structures is selected, the system automatically inherits all connected fields, presenting them in the configuration to enable complete and detailed mapping.

The true power of this configuration emerges when selecting complex fields such as "Split Discount." In this case, the system automatically recognizes that this field contains an articulated data structure and presents all associated sub-fields to the user. Therefore, with "Split Discount," the system automatically expands the mapping showing all specific components:

This approach ensures that no important data is lost during export and that the user always has complete control over the final CSV structure, being able to decide which specific sub-fields to include or exclude from the export.

 

image-1756475087176.png

Mapping Save

Step 5 Wizard

Mapping Save

Configuration Finalization

The fifth and final step of the wizard concludes the module configuration process. In this phase, the system confirms that all settings have been saved correctly and provides options to return to operational management.

In this phase, the system has completed three fundamental operations:

image-1756475194719.png

  1. Settings Validation Verifies that the configuration is consistent and correct (e.g., valid field mapping, compatible CSV format, etc.).
  2. Permanent Save All data is securely stored for future use. The configuration can be modified or reused at any time.
  3. Module Activation The configured module becomes immediately available on the plugin homepage, ready for export.

IMPORTANT NOTE: The wizard completion is "not just the end of configuration," but the beginning of practical, fast, and customized use of the CSV export system within the chosen module. Once saved, each configuration becomes a ready-to-use tool, optimized to make data export simple and efficient.

 

image-1756475208885.png