Difference between revisions of "M4 DIDs Import from CSV"
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''FUNCTIONALITY IS IN THE DEVELOPMENT STAGE''' | |||
<br><br> | |||
=Description= | =Description= | ||
''M4 DIDs Import from CSV'' functionality allows creating '''DIDs''' by uploading a valid CSV file with necessary information. | ''M4 DIDs Import from CSV'' functionality allows creating '''DIDs''' by uploading a valid CSV file with necessary information. | ||
Line 14: | Line 17: | ||
'''Note:''' each step is covered in more detail below. | '''Note:''' each step is covered in more detail below. | ||
<br><br> | |||
=File upload (Step 0)= | =File upload (Step 0)= | ||
Clicking on a IMPORT button opens a new page where we can select a CSV file to upload | Clicking on a IMPORT button opens a new page where we can select a CSV file to upload | ||
Line 34: | Line 37: | ||
'''Required columns''' in a CSV file: | '''Required columns''' in a CSV file: | ||
* '''DID''' - DID Number we want to import, | * '''DID''' - DID Number we want to import, | ||
All other columns are optional (complete options are visible in the screenshot on Step 2). Optional fields | All other columns are optional (complete options are visible in the screenshot on Step 2). Optional fields that require id from M4 DB are: | ||
* '''Customer''' - | * '''Vendor''' - Vendor (M4 User) ID in M4 DB, | ||
* '''Forward to''' - require special values | * '''Buying Pricing Group''' - ID of Buying Pricing Group in M4 DB, | ||
** '''Forward Connection Point''' - | * '''Selling Pricing Group''' - ID of Selling Pricing Group in M4 DB. | ||
** '''Forward DID''' - | *'''Recommended Charge Plan''' - ID of Recommended Charge Plan in M4 DB. | ||
* '''Failover1''' - require special values | * '''Customer''' - ID of the user in M4. | ||
** '''Failover1 Connection Point''' - | * '''Forward to''' - require special values specifying forward type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required. | ||
** '''Failover1 DID''' - | ** '''Forward Connection Point''' - ID of Connection Point in M4 which will be used for forwarding. | ||
* '''Failover2 Connection Point''' - | ** '''Forward DID''' - ID of DID in M4. | ||
** '''Failover2 Connection Point''' - | * '''Failover1''' - require special values specifying failover 1 type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required. | ||
** '''Failover2 DID''' - | ** '''Failover1 Connection Point''' - ID of Connection Point in M4 which will be used for Failover1. | ||
** '''Failover1 DID''' - ID of DID in M4. | |||
* '''Failover2 Connection Point''' - requires special values, which specify the failover 2 type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required. | |||
** '''Failover2 Connection Point''' - ID of Connection Point in M4 which will be used for Failover2. | |||
** '''Failover2 DID''' - ID of DID in M4. | |||
* '''Header Transformation Group''' - ID of the [[M4 Header Transformation Rules Groups | Header Transformation Group]]. | |||
<br> | <br> | ||
CSV header in CSV file can have any name, but it is best to use descriptive names as these header names will be used during the assignment used below. | CSV header in CSV file can have any name, but it is best to use descriptive names as these header names will be used during the assignment used below. | ||
Line 55: | Line 60: | ||
'''Minimal valid CSV file example''' | '''Minimal valid CSV file example''' | ||
37068311111 | |||
Yes, one DID number is enough to import it. | |||
'''CSV file example with forward to external number''' | <br><br> | ||
did, vendor, customer, buying_pricing_group, selling_pricing_group, forward_to, forward_external_number | '''CSV file example with forward to the external number''' | ||
37068311111, 3, 2, 1, 1, 2, 1234567 | did, vendor, customer, buying_pricing_group, selling_pricing_group, forward_to, forward_connection_point, forward_external_number | ||
37068311111, 3, 2, 1, 1, 2, 11, 1234567 | |||
<br><br> | |||
=Separator selection (Step 1)= | =Separator selection (Step 1)= | ||
When separators predicted by the system do not match the configuration, the ''Separator selection'' step is necessary.<br><br> | When separators predicted by the system do not match the configuration, the ''Separator selection'' step is necessary.<br><br> | ||
[[File:m4_did_import1.png]] | [[File:m4_did_import1.png]] | ||
<br> | |||
<br><br> | |||
=Column assignment (Step 2)= | =Column assignment (Step 2)= | ||
After determining the [[M4_DIDs_Import_from_CSV#Separator_selection_.28Step_1.29|Separators]], CSV file columns must be assigned to DID attributes.<br> | After determining the [[M4_DIDs_Import_from_CSV#Separator_selection_.28Step_1.29|Separators]], CSV file columns must be assigned to DID attributes.<br> | ||
* In the ''assignment'' table it is necessary to map DID attirubtes in a '''Value''' column to CSV columns in a '''Select from CSV file''' column | * In the ''assignment'' table it is necessary to map DID attirubtes in a '''Value''' column to CSV columns in a '''Select from CSV file''' column. | ||
* If a column is missing in the CSV file it is possible to manually enter some value in the '''Enter manually''' column. This value will be applied to all DIDs that are being imported | * If a column is missing in the CSV file it is possible to manually enter some value in the '''Enter manually''' column. This value will be applied to all DIDs that are being imported. | ||
* The '''Default''' column indicates default attribute values in the Database. | * The '''Default''' column indicates default attribute values in the Database. | ||
The page in this step also shows the first five lines of a CSV file in order to help with column assignment. | The page in this step also shows the first five lines of a CSV file in order to help with column assignment. | ||
Line 75: | Line 87: | ||
'''Notes:''' | '''Notes:''' | ||
* An asterisk (*) indicates the mandatory fields. | * An asterisk (*) indicates the mandatory fields. | ||
* It is often practical to dedicate the first CSV file line to | * It is often practical to dedicate the first CSV file line to a header and name the columns according to the '''Value''' column values. In this case, columns will be assigned automatically (case is not relevant, spaces can be replaced with underscores (_)). | ||
* The order of priority when assigning values to DIDs is the following: '''CSV column''' > '''Manual value''' > '''Default value'''. | * The order of priority when assigning values to DIDs is the following: '''CSV column''' > '''Manual value''' > '''Default value'''. | ||
* The values of '''Forward to''', '''Failover1''' and '''Failover2''' explained in [[M4_DIDs_Import_from_CSV#File_format|File Format section]] | * The values of '''Forward to''', '''Failover1''' and '''Failover2''' explained in [[M4_DIDs_Import_from_CSV#File_format|File Format section]]. | ||
<br> | <br> | ||
[[File:m4_did_import2.png]] | [[File:m4_did_import2.png]] | ||
<br><br> | |||
=Column confirmation (Step 3)= | =Column confirmation (Step 3)= | ||
The ''Column confirmation'' step is dedicated to | The ''Column confirmation'' step is dedicated to reviewing the [[M4_DIDs_Import_from_CSV#Column_assignment_28Step_2.29|''Column assignment'']] results. Assignment mistakes might be corrected by using the '''Back''' button. When satisfied with the result, '''Confirm columns''' button should be pressed in order to go to the next step. To see complete information, please use horizontal scrolling.<br> | ||
'''Notes:''' | '''Notes:''' | ||
* When the manual value is selected for a column this value is shown in this step as well; | * When the manual value is selected for a column this value is shown in this step as well; | ||
<br><br> | <br><br> | ||
[[File:m4_did_import3.png]] | [[File:m4_did_import3.png]] | ||
<br><br> | <br><br> | ||
=Analysis (Step 4)= | =Analysis (Step 4)= | ||
The ''Analysis'' step checks if the DIDs provided in a CSV file are valid. | The ''Analysis'' step checks if the DIDs provided in a CSV file are valid. | ||
The example analysis summary is provided in a screenshot below. By clicking on '''(Press here to get the list)''' link it is possible to view invalid DID information. | The example analysis summary is provided in a screenshot below. By clicking on '''(Press here to get the list)''' link it is possible to view invalid DID information. | ||
Please note that CSV header (if present) will | Please note that the CSV header (if present) will always be displayed as an invalid DID. | ||
<br><br> | <br><br> | ||
[[File:m4_did_import4.png]]<br> | [[File:m4_did_import4.png]]<br> | ||
<br><br> | |||
=Import (Step 5)= | =Import (Step 5)= | ||
After pressing the '''Import''' button in the [[ | After pressing the '''Import''' button in the [[M4_DIDs_Import_from_CSV#Analysis_.28Step_4.29|''Analysis'']] step the system creates DIDs with configuration from CSV file. If the CSV file contains valid customer value, created DIDs will be seen to '''Active''' status, otherwise, DIDs will be set to '''Free''' status. After this step, GUI will display the DIDs Inventory page which will contain newly created DIDs. | ||
=See | <br><br> | ||
*[[M4 DID Management]] | = See also = | ||
* [[M4 Subscriptions|Subscriptions]] | |||
** [[M4 Charge Plans|Charge Plans]] | |||
* [[M4 Services|Services]] | |||
** [[M4 DID Management|DIDs]] | |||
*** [[M4 DIDs Import from CSV|DID Import from CSV]] | |||
** [[M4 Flat-Rates|Flat-Rates]] | |||
** [[M4 Custom Services|Custom Services]] |
Latest revision as of 08:51, 7 May 2024
FUNCTIONALITY IS IN THE DEVELOPMENT STAGE
Description
M4 DIDs Import from CSV functionality allows creating DIDs by uploading a valid CSV file with necessary information.
DIDs import accessible from DIDs Inventory page
The procedure is completed within the six following steps:
- File upload,
- Separator selection (skipped when separators determined automatically match the system configuration),
- Column assignment,
- Column confirmation,
- Analysis.
- Import.
Note: each step is covered in more detail below.
File upload (Step 0)
Clicking on a IMPORT button opens a new page where we can select a CSV file to upload
File format
A valid file used in a DID import must be in a CSV format (Comma Separated Values).
A CSV Column Separator and a Decimal Separator must be set correctly in MAINTENANCE -> Settings CSV section:
- CSV Column Separator,
- CSV Decimal Separator.
CSV Columns could and sometimes should be enclosed within quotation marks ("). Possible closure cases:
- CSV column values include a CSV Column Separator.
Note: quotation marks within closures must be escpaed correctly in order for columns to be read as expected (eg. "test value\"escaped\"").
Required columns in a CSV file:
- DID - DID Number we want to import,
All other columns are optional (complete options are visible in the screenshot on Step 2). Optional fields that require id from M4 DB are:
- Vendor - Vendor (M4 User) ID in M4 DB,
- Buying Pricing Group - ID of Buying Pricing Group in M4 DB,
- Selling Pricing Group - ID of Selling Pricing Group in M4 DB.
- Recommended Charge Plan - ID of Recommended Charge Plan in M4 DB.
- Customer - ID of the user in M4.
- Forward to - require special values specifying forward type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required.
- Forward Connection Point - ID of Connection Point in M4 which will be used for forwarding.
- Forward DID - ID of DID in M4.
- Failover1 - require special values specifying failover 1 type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required.
- Failover1 Connection Point - ID of Connection Point in M4 which will be used for Failover1.
- Failover1 DID - ID of DID in M4.
- Failover2 Connection Point - requires special values, which specify the failover 2 type. (0 - disabled, 1 - Connection Point, 2 - External Number, 3 - DID number). Depending on the selected value, these values with IDs might be required.
- Failover2 Connection Point - ID of Connection Point in M4 which will be used for Failover2.
- Failover2 DID - ID of DID in M4.
- Header Transformation Group - ID of the Header Transformation Group.
CSV header in CSV file can have any name, but it is best to use descriptive names as these header names will be used during the assignment used below.
Minimal valid CSV file example
37068311111
Yes, one DID number is enough to import it.
CSV file example with forward to the external number
did, vendor, customer, buying_pricing_group, selling_pricing_group, forward_to, forward_connection_point, forward_external_number 37068311111, 3, 2, 1, 1, 2, 11, 1234567
Separator selection (Step 1)
When separators predicted by the system do not match the configuration, the Separator selection step is necessary.
Column assignment (Step 2)
After determining the Separators, CSV file columns must be assigned to DID attributes.
- In the assignment table it is necessary to map DID attirubtes in a Value column to CSV columns in a Select from CSV file column.
- If a column is missing in the CSV file it is possible to manually enter some value in the Enter manually column. This value will be applied to all DIDs that are being imported.
- The Default column indicates default attribute values in the Database.
The page in this step also shows the first five lines of a CSV file in order to help with column assignment.
Notes:
- An asterisk (*) indicates the mandatory fields.
- It is often practical to dedicate the first CSV file line to a header and name the columns according to the Value column values. In this case, columns will be assigned automatically (case is not relevant, spaces can be replaced with underscores (_)).
- The order of priority when assigning values to DIDs is the following: CSV column > Manual value > Default value.
- The values of Forward to, Failover1 and Failover2 explained in File Format section.
Column confirmation (Step 3)
The Column confirmation step is dedicated to reviewing the Column assignment results. Assignment mistakes might be corrected by using the Back button. When satisfied with the result, Confirm columns button should be pressed in order to go to the next step. To see complete information, please use horizontal scrolling.
Notes:
- When the manual value is selected for a column this value is shown in this step as well;
Analysis (Step 4)
The Analysis step checks if the DIDs provided in a CSV file are valid.
The example analysis summary is provided in a screenshot below. By clicking on (Press here to get the list) link it is possible to view invalid DID information.
Please note that the CSV header (if present) will always be displayed as an invalid DID.
Import (Step 5)
After pressing the Import button in the Analysis step the system creates DIDs with configuration from CSV file. If the CSV file contains valid customer value, created DIDs will be seen to Active status, otherwise, DIDs will be set to Free status. After this step, GUI will display the DIDs Inventory page which will contain newly created DIDs.