Contacts¶
Synchronize phone numbers¶
The entries in the desired phone book can be synchronized with the entries in the CSV file. The basic information for synchronization is a list of phone numbers or e-mail addresses.
Performing synchronization¶
Create a CSV file with data to be synchronized.
The file must contain one key column that is required and then other optional columns. The separating character can be a semicolon or comma.
The key column can be any of the following:
Column name
Value (described in detail in the following table)
Emails
PN = e-mail address
Numbers
PN = telephone number
Rank
the order of record processing
Optional columns can contain the following values:
Column name
Data type
Description (Valid data values are given below)
BlockMarketingUsage
bool
Block marketing usage
Culture
string
A culture in the format specified in the
Language
table – e.g.en
Emails
string
E-mail address
ExcludeFromLookup
bool
Exclusion from looking up in lists; indicates that this number should not be considered when looking up a PhoneNumber and contact for the communication being established (IC/OC/M/CH); value
true
– the number should not be considered during the look-up; valuefalse
– the number can be used in the look-up function.GdprIdentity
bool
A telephone number is used to determine a person’s identity in terms of GDPR.
LanguageId
string
guid – The language of the contact number
Numbers
string
Phone number
Rank
int
The order in which numbers and e-mails will be processed; the values do not have to be in sequence or unique;
WaitingOffset
int
Preferential (+) or penalty (-) time of calls within the project; unit of measure – second; NULL means 0;
Description
string
Description, identification of the number / e-mail type
DisplayName
string
Name, service name
TechnicalId
string
Technical address in chat
Example of a csv file
Numbers;BlockMarketingUsage;Culture;Emails;ExcludeFromLookup;GdprIdentity;LanguageId;Rank;WaitingOffset;Description;DisplayName;TechnicalId 736961364;Yes;en;JohnDoe@hotmail.com;No;true;E358EC45-86D3-4DD7-90F5-2FD32BA714BF;3;8;SomeDesc;JohnDoe;secretpassword
Synchronize now
In the administration, open the
menu item.Click on the New phone book sync button and enter the following values in the form:
Synchronized phone book – Select the name of the list to be updated.
Synchronization key – From the drop-down menu, choose which column is key for the synchronization –
E-mail
,Numbers
orRank
.Separating character – Enter the character that you used as a separating character in the csv file – a semicolon or comma.
Default order – If the file does not contain the Rank column with values and the key column is not Rank, then the Rank column of the given phone book in the database will be used to add values of an ascending series of numbers starting at this value that you specify; this value is required, otherwise you cannot continue.
Default block marketing usage`and :guilabel:`Default exclusion from list look-up – These settings will be used if the corresponding columns BlockMarketingUsage and ExcludeFromLookup in the file do not contain the required values.
File path – Click on the Select file button, look up and select a file on your computer.
Click on Synchronize to start synchronization.
Below the table, you will see a notification that the request was successfully created and that the file was processed in the background
Click on the link Show sync progress in the bottom section to display a synchronization result form.
The following buttons offer you the options described below:
Cancel synchronization if it is still in progress – This will terminate the synchronization and all changes made so far will remain in the new state.
Delete synchronization
Update the displayed synchronization result report if the batch is large.
Download File with defective records – If synchronization errors occurred; the file contains error descriptions.
ServiceBulk performs the following steps:
Check if the CSV file contains a key column.
Sets the value of the
iCC.PhoneNumber.Synchronized
column tofalse
for all database phone book entries.It scans the CSV file line by line and checks the validity of data in columns – see the Valid data values table.
If the row in the file is correct, all records in the
iCC.PhoneNumber
table are looked up and processed in the next step that have the following properties:They are not of the template type
They belong to the required phone book
They correspond to the value in the key column.
If a row in the file is marked as incorrect, it is skipped and the error is written to the defect file, which can be downloaded from the administration after the synchronization is completed.
The values in the key column with records in the file are compared with the records in the
PhoneNumber
table in the database.If the PhoneNumber does not exist in the database, a new record is created according to the data from the csv file; the
iCC.PhoneNumber.Synchronized
column value is set totrue
.If there is exactly one record, the data is updated according to the file; the
iCC.PhoneNumber.Synchronized
column value is set totrue
.If there are multiple records, only the first record found is updated according to the key column defined, the other ones are marked for deletion; the
iCC.PhoneNumber.Synchronized
column value is set totrue
; if the column value isdeleted
=true
, it is set tofalse
; for other record occurrences,deleted
will be set totrue
.
Checks values in optional record columns in a csv file.
If a value in the
BlockMarketingUsage
column is missing, the default value defined in administration when defining synchronization is used.If the value in the
ExcludeFromLookup
column is missing, the default value will be used as defined in the administration during synchronization definition.If the value in the
Rank
column is missing, the default value will be used as defined in the administration during synchronization definition, or0
.If the value in the
GdprIdentity
column is missing, thentrue
will be used if a telephone number is used to determine the person’s identity in terms of GDPR (set by theGdprIdentityEntity
parameter in the configuration).
At the end of synchronization, the service sets the value of the
iCC.PhoneNumber.Deleted
column totrue
for all phonebook records that haveiCC.PhoneNumber.Synchronized
=false
; therefore, it marks as deleted all phone numbers that were in the database but are no longer in the csv file.
Permissions¶
If you have the ImportPhoneNumber right at least at
AllowWrite
, you can perform synchronization.If you have the ImportPhoneNumber right at least at
AllowRead
, you can download the file with defective records.
Valid data values¶
Data type |
Possible values |
Validity check result |
---|---|---|
|
|
If the text does not match any of the specified |
|
|
If the number cannot be parsed, the row is marked as incorrect. |
|
|
If the phone number is not valid, the row is marked as incorrect. |
|
|
If the e-mail address is not valid, the row is marked as incorrect. |
|
One of the values in the |
|
|
One of the values in the |
|
Creating a phone number (PN) and opening the editor using a URL¶
By calling a URL address, it is possible to create a “phone number” (PN) record (an entry in the PhoneNumber
table) and, at the same time, open the phone number editor on the just created record.
If you call the URL http://frontstage/reactclient/pages/PhoneNumberEditor.html
(fill in frontstage and reactclient according to your installation), an empty phone number will be created and its editor will open.
In addition, it is possible to use several query string parameters after the URL, corresponding to the columns of the newly created phone number. None of the parameters is mandatory. Available parameters:
Parameter |
Description |
---|---|
|
An ID of the telephone directory to which the newly created phone number is to be added. |
|
An ID of the contact to which the phone number belongs ( |
|
A valid phone number according to the numbering plan. |
|
A name of the new record. |
|
An e-mail of the new record. |
|
A technical address (similar to a phone number for chat). It will become |