Marketing
GPS update
Process number: CIS002 |
Script Id. number: FCRM058 |
File: PartUpdateGPS.PAS |
Script description: The script updates the partner's GPS coordinates according to the entered address. |
||
Address in the tree: |
||
Script parameters:
AllPartners - No Yes - the script can be run from anywhere and will update GPS in all partners. No - the script updates GPS for the partners selected in the filter. |
Opportunities update
Process number: CRM 010 |
Script Id. number: FCRM003 |
File: OFF_AKT.PAS |
Script description: This script updates the data concerning the Expected realization in Opportunities according to the tracking activities from page 2 of the Opportunity. These are Probability, Date, Volume and Acquisition. The data are updated according to the last tracking activity. If there are several tracking activities with the same date, the data from the activity with the highest probability of realization are used. The function also updates the Date from and Date to fields in the Opportunity. This is done according to the values in the oldest and the most recent opportunity. After execution, the function lists the documents that have changed. |
||
Address in the tree: [Marketing - CRM] [Opportunities] |
||
Script parameters:
Confirmed - No When the parameter is set to Yes, the script updates only confirmed opportunities; if it is set to No, only unconfirmed opportunities are updated. |
ShowLog - Yes The parameter specifies whether the script should list the updated opportunities. If the parameter is set to Yes, this list is displayed. |
Anonymization of contact person data (GDPR support)
Process number: CRM 009 |
Script Id. number: FCRM060 |
File: AnonymizeContactPerson.PAS |
Script description: The script is used to anonymize personal data in the Contact persons module. After it is run, the contact person is invalidated and the values in the selected fields containing personal data are erased. The script can only be run in the container state.
The script erases only the values of the fields defined in its parameters. During anonymization, it checks the age of confirmed Sales orders and Orders (including all their subordinate documents) in which the given contact person is entered in the Contact person field.
The CheckAllDocumentsPeriod parameter specifies the number of years for which documents must be retained and during which anonymization cannot be performed. The retention period can also be set individually for individual document types. If an individual period is defined for a particular document, it takes precedence over the value of the CheckAllDocumentsPeriod parameter.
If the CheckAllDocumentsPeriod parameter is not filled in and at least one confirmed document exists for the contact person being anonymized, the anonymization is not performed. |
||
Address in the tree: [Marketing - CRM] [Contact persons] |
||
Script parameters:
ActivityAll - no Yes - erases the whole activity tree |
ActivityType Erases the required activity type |
All - no Yes - sets all boolean parameters to yes |
AttachmentType Erases the required attachment type |
CommentType Adds the defined comment type to the automatically created comment |
EAddress - No Yes - the values in the Electronic addresses fields are hidden |
FirstName - No Yes - the value in the First name field is hidden |
CheckAdvancesProvidedPeriod - -1 Number of years for checking the existence of a provided advance |
CheckAdvancesReceivedPeriod - -1 Number of years for checking a received advance |
CheckAllDocumentsPeriod - -1 Value -1 ... if at least one confirmed document exists for the contact person being anonymized, the script does not perform the anonymization.
Value > -1 ... specifies the number of years for which documents must be retained and during which anonymization cannot be performed. The script checks whether a confirmed document younger than the specified number of years exists for the contact person being anonymized. If such a document exists, the script reports this and does not perform the anonymization. For example, with a value of 6, it will not be possible to anonymize a contact person if a confirmed document younger than 6 years exists.
Note: If an individual period is filled in for some document type, this individual value takes precedence.
|
CheckDeliveryConfirmPeriod - -1 Number of years for checking delivery notes / delivery confirmations |
CheckInvoiceInPeriod - -1 Number of years for checking invoices in |
CheckInvoiceOutPeriod - -1 Number of years for checking invoices out |
CheckOrderConfirmPeriod - -1 Number of years for checking received orders |
CheckPurchaseOrderPeriod - -1 Number of years for checking purchase orders |
CheckReceiptCardsPeriod - -1 Number of years for checking receipt cards |
CheckReleaseNotesPeriod - -1 Number of years for checking release notes |
CheckRemindersPeriod - -1 Number of years for checking reminders |
CheckReservingCardsPeriod - -1 Number of years for checking reservation cards |
CheckSalesOrderPeriod - -1 Number of years for checking sales orders |
CheckServiceSheetsPeriod - -1 Number of years for checking service sheets |
MarketingPersonalData - No Yes - erases the values from page 6 of Contact persons |
OtherPersonalData - No Yes - erases the values from page 3 of Contact persons |
PraSk Adds a right to the record |
SimpleAddress - No Yes - erases the values in the Simple addresses fields |
Surname - No Yes - the value in the Surname field is hidden |
TitleData - No Yes - erases the values in the Title and Title after fields |
Anonymization of Partners (GDPR support)
Process number: CRM009 |
Script Id. number: FCRM061 |
File: AnonymizePartner.pas |
Script description: Script for erasing values in fields that contain personal data. |
||
Address in the tree: |
||
Script parameters:
Abbr1 - no Yes - erases the value in the Abbreviation 1 field |
Abbr2 - no Yes - erases the value in the Abbreviation 2 field |
Company - no Yes - erases the value in the Company field |
Addresses - no Yes - erases the values in the fields intended for entering the Address |
BusinesID - no Yes - erases the value in the Comp. Reg. No. field |
TaxID - no Yes - erases the value in the VAT Reg. No. field |
EAddress - no Yes - erases the values in the fields for Electronic addresses |
DeleteNotes - no Yes - erases the records on the Notes tab |
ActivityType Erases the required activity type |
ActivityAll Erases the whole activity tree |
PraSk Adds a right to the record |
CommentType Adds the defined comment type to the automatically created comment |
All - no |
This script can be used to erase values in fields that contain personal data. The fields to be erased can be defined in the script parameters. The script is executed only if there is no link to a Customer. If the Partner is linked to a Customer, the anonymization must be performed over the Customer module (Suppliers/Customers).
Anonymization of data in Registration (GDPR support)
Process number: CRM 009 |
Script Id. number: FCRM062 |
File: AnonymizeRegistration.PAS |
Script description: The script erases the First name, Surname, e-mail, phone and addresses and creates a random login name. |
||
Address in the tree: |
||
Script parameters:
Address - no Yes - erases the address records |
All - no Yes - sets all boolean parameters to yes |
CommentType Adds the defined comment type to the automatically created comment |
Email - No Yes - the value in the Email field is hidden |
FirstName - No Yes - erases the value in the First name field |
Login - No Yes - erases the value in the Login name field and creates a random login name |
Phone - No Yes - erases the value in the Phone field |
Surname - No Yes - erases the value in the Surname field |
This script can be used to erase values in fields that contain personal data. The fields to be erased can be defined in the script parameters.
Export of Partners to "*.xml"
Process number: CRM009 |
Script ID number: FCRM037 |
File: Part_ExportXML.pas |
Script description: Script for exporting partners to the "*.xml" format. |
||
Address in the tree: |
||
Script parameters:
XMLFile Parameter for selecting the storage location and the name of the target file. |
XMLFileForImport Parameter for selecting the storage location and the name of the target file with the export settings. |
XMLFileSaveSett Parameter for selecting the storage location of the file with the current settings. |
NoInteractive - No Yes - the script form will not be displayed. |
This script makes it possible to export partner cards to the "*xml" format. The script is run over the container of partners and only the partners from this container are always exported. After start, a form is displayed in which you can select the individual export elements, i.e. the fields of the partner card. The individual elements for export must be marked with an asterisk in the form. Marking is done using the standard asterisk icons or the key combinations Shift+Enter or Ctrl+Space. The list of these elements can be sorted in the form by various criteria. The Sort by field is available for choosing this sorting. Using this function, the user can also export the partners' contact persons together with the partners. To export this subordinate module, it must be selected in the Target module field and the relevant elements must again be marked with an asterisk. The Output file field is used to enter the name and path of the exported "*.xml" file.
This script also makes it possible to create an "*.xml" file with the settings of values for the import of partners. This is done by checking the Create settings for import field. When this field is checked, all required fields (elements) of the partner card are also marked automatically. This file can be copied to the company directory, and after start the script for importing partners automatically links the fields saved in this "*.xml" file with the fields in K2.
The user can also save the current settings in the form using the Settings/Save settings option on the toolbar. Settings saved in this way are used the next time the script is run. The current settings are again saved in an "*.xml" file.
The export of partners itself is performed by pressing the Export button.

Picture: Export data form
Contacts
Process number: CIS002 |
Script ID number: FCIS012 |
File: Mar_Hle.PAS |
Script description: The basic function of the script is searching, updating and creating new Partners, Contact persons and Customers (Suppliers/Customers). |
||
Address in the tree: |
||
Script parameters:
Code The value entered in this parameter is pre-filled in the Code field. |
CreateNewZIPCODE - Yes If the entered postal code is not found, the script creates it. |
Group - Supplier The value entered in this parameter is pre-filled in the Group field. |
ImportFile This parameter can be used to enter the path to the imported file. |
ShowOpenDialog - Yes If this parameter is set to No, the dialog for selecting the imported file is not displayed. The file is imported according to the entered path. |
Page 1 - Searching

Picture: Contacts form for searching and creating contacts
In the upper part of the form there are options specifying how and which books are to be searched.
By checking, we select:
- the search method:
FULLTEXT |
The script will search words as well as their parts and display the found records. |
Exact search |
The script will search only whole words and display the found records. With Exact search, the two search options listed below are not taken into account. |
With all words |
The script displays the records that contain all the entered words. |
With at least one word |
The script displays the records that contain at least one entered word, but from each filled-in field. |
- the book we want to search:
Cont. person |
The script will search the Contact persons book. |
Partner |
The Partners book will be searched. |
Customer |
The Suppliers/Customers book will be searched. |
Fields that can be searched:
Person's name |
The names of persons are searched. |
Person's surname |
The surnames of persons are searched. |
Company |
The names of companies are searched. |
Abbreviation |
The abbreviations of companies are searched. |
Comp. Reg. No. |
The Comp. Reg. Nos. of companies are searched. |
More |
Pressing the More button displays further search options (e.g. by address). |
Note: If we want to search by these fields, they must be checked. If the options for these fields are not checked and only values are filled in them, these values will not be taken into account.
Pressing the Search button starts searching the records according to the entered parameters. The Delete all button deletes the entered parameters. The Time field shows how long the search took the system. The Found records field shows the number of records found according to the entered criteria.
Example:
We want to find a company whose name contains the word Demonstrační and the person's surname contains the word Motan.
Demonstrační is entered in the Company field and Motan is entered in the Person's surname field. I.e., the search will look for a person whose surname contains Motan AND AT THE SAME TIME who is listed as a Contact person of a Company whose name contains the word Demonstrační.

Picture: Search example
After entering the search text, we press the Search button, and if a record meeting the condition is found, it is displayed in the middle part of the form. The Type of contact column shows that the person searched for was found as the Person type and is assigned to a Supplier/Customer and at the same time to a Partner.
There may also be several found records; by marking one of them, further information about this record is displayed in the lower part of the form. In the edit fields, you can work with some field values of this record:
- using the check boxes (Contact person, Partner or Customer) we specify which record we want to edit,
- by pressing the relevant button, we determine what we want to do with the selected record:
- we create a new record with the New button or the Ins key,
- we can change the marked record with the Change key or the F5 button,
- we can copy a record with the Copy button or the F6 key,
- with the Save button or the F2 key we save the created or changed record,
- with the Cancel button or the Esc key we cancel the changes made,
- with the New activity button we create a new activity for the selected record in the Activities book.
Page 2 - Loading records from a file in the "*.xls" format

Picture: Contacts - the Loading tab for loading records from Excel
Parts of the form:
Contact items |
The headers of the values of the individual records are preset here. |
File columns |
The column headers from the loaded file are loaded here. |
Loaded records |
The individual records (rows) from the loaded file are displayed here. |
Form buttons:
Load file |
Displays a form for selecting the file from which the records will be loaded. |
Link |
Links the marked column of the input file with the marked field in IS K2, i.e. with a contact item. |
Unlink |
Unlinks the paired column of the input file from the contact item in IS K2. |
Unlink all |
Unlinks all paired columns of the input file from the contact items in IS K2. |
Delete |
Removes the loaded file from this form. |
Load records |
Loads records from the file into the Loaded records field. |
Without 1st row |
When this field is checked, the script takes into account the first row of the "*.xls" file, which usually contains the header of the records. If this field is not checked, the script treats the first row as a record, not as the record header. |
Procedure for loading records:
- using the Load file button, we select the file by which we want to search or save new records,
- after the file is loaded, the header (1st row) of the "*.xls" file is loaded into the File columns part of the form,
- in the lower part of the form, the records (individual rows) from our file are inserted into the Loaded records section, but only the Row column will be filled in,
- we fill in the other columns by assigning records of the File columns field to records in the Contact items field, see Procedure for assigning records below,
- we reload the records using the Load records button.
Contact items represent fields in IS K2. They correspond to the fields on page 1 of the Contacts form by which contacts can be searched (on page 1 in the upper part). These fields will be pre-filled (on page 1 in the lower part) if the contact is not found.
Procedure for assigning records:
- we place the cursor on a record in the File columns part of the form, and in the same way we select in the Contact items part of the form the item with which we want to link the record,
- we link these items with the Link button.
- in the Contact items part of the form, in the Column column, we can see from the displayed letters which columns we have linked together.

Picture: Page 2 of the Contacts form - Loading
If the records are correctly assigned and loaded, the First record and Next record buttons are displayed on page 1 of the form. Pressing the First record button pre-fills the search fields with the data of the given record (row) from Excel, and records in the books are searched according to the checked fields. The Next record button loads the next row of the loaded file from page 2 into the search fields and starts the search. If we want to start searching from a record other than the first loaded one, we use the cursor on page 2 in the Loaded records section to mark the record preceding the record we want to load, switch to page 1 and press the Next record button.

Picture: Settings of page 1 of the Contacts form
We can further work with records found in this way in the same way as described for the records found on the first page.
Import of partners
Process number: CRM009 |
Script ID number: FCRM025 |
File: ImPart.PAS |
Script description: Script for importing Partners from an "*.xls" file. |
||
Address in the tree: [Marketing - CRM] [Partners] |
||
Script parameters:
FindPartBy - 0 0 - the script searches for partners by abbreviation 1 and then, if necessary, by abbreviation 2, 1 - the script searches for partners only by abbreviation 1, 2 - the script searches for partners only by abbreviation 2, 3 - the script searches for partners only by name, 4 - the script searches for partners only by Comp. Reg. No. |
XMLFile - ImportPart.xml Parameter for specifying the name of the "*.xml" file in which the current settings and field pairing are saved. |
Spreadsheet - 0 Parameter for choosing the spreadsheet application for the import. 0 - the script automatically detects the spreadsheet application for the import, 1 - the script uses the Microsoft Excel spreadsheet application for the import, 2 - the script uses the LibreOffice spreadsheet application for the import. |
This script makes it possible to import partners into IS K2 from an "*.xls" file and thus simplify their entry into the system. Together with the partners, their electronic addresses can also be imported.
When preparing a file suitable for import, make sure that the header with the column descriptions is on row 1 and the data to be imported start from row 2.

Picture: Example of an input file
After starting the script, the prepared "*.xls" file must be loaded into the Input file field. The user can do this with the Load file button.
Import settings
Options |
Option to set whether the import of duplicate or non-duplicate items is allowed. |
Do not import duplicate records |
Only companies whose name is not in the K2 database are imported. |
Allow to import duplicate records |
All records are imported regardless of matching company names in the database. |
Rewrite duplicate records and import new ones |
All records are imported. Records of companies that are in the database will be changed, the others will be created as new. |
Rewrite duplicate records only (do not import new ones) |
Only duplicate items are imported, i.e. the records that are already in the K2 database. |
Import of subordinate modules |
By default, set including the import of subordinate modules. If the field is checked, subordinate modules can be imported, i.e. electronic addresses and notes. |

Picture: Loading the import input file for an Excel or xml file
By selecting and loading the input file, the 1st row of the imported file is displayed in the Input columns part. The With header option means that the data will be imported from row 2, otherwise from row 1.
Assigning fields
- We select the Name in the Input field part.
- We select the Field in the Field in K2 – Partners part.
- We press the Link button.
The Input name and Input column columns in the Field in K2 part show the names of the assigned columns from the imported file, and at the same time the number of assignments is counted in the Input columns part.
To detach fields, simply select the field in the K2 field – Partners/Contact persons part and press the Detach button.
Required field - The
flag in the PP column marks the required fields in K2 to which columns from the input file must be assigned and a Def. value entered.
Def. value
- By selecting or entering a default value, the specified default value can be imported into the K2 database without a column from the "*.xls" file being assigned.
- If both a column from the input file and a default value are assigned, the default value will be imported when an empty value occurs in the input file.
- Filling in a default value is mandatory for required fields and for fields that refer to code lists and for which updating is not enabled, see below.
- A default value can be inserted via the icon in the upper part of the form or using the Enter key on the record.
Updating code lists ![]()
- The
flag in the A column means that for fields linked to code lists, updating of these code lists can be enabled during the import. If updating of the code list is enabled, the A column will contain the
flag. - If updating of the code list is not enabled, a default value must be entered, which will be imported if the assigned column of the input file contains an empty value or a value that is not in the code list.
- Updating can be enabled via the
icon in the upper part of the form or using the Shift+Enter keyboard shortcut on the record.

Picture: Assigned import field
Bulk sending of emails
Process number: CRM009 |
Script ID number: FCRM026 |
File: SEND_MAIL.PAS |
Script description: The script enables sending bulk emails from the Partners, Contact persons and Suppl./Cust. containers. |
||
Address in the tree: [Marketing - CRM] [Partners] [Bulk correspondence] [Marketing - CRM] [Contact persons] [Bulk correspondence] [Sale / Sales Order Processing] [Basic data] [Customers] [Customer functions] [Purchase / Supply] [Basic data] [Suppliers [Supplier functions] |
||
Script parameters:
Activity_Abbr |
Activity_Campaign - 0 Activity campaign. The value is pre-filled in the field in the form. |
Activity_Descr Activity description. The value is prefilled in the field in the form. |
Activity_Offer Activity opportunity. The value is pre-filled in the field in the form. |
Activity_RespPers - 0 Responsible person of the activity. The value is prefilled in the field in the form. |
Activity_Specifitacion - 0 Activity specification |
Activity_Type Activity type. The value is prefilled in the field in the form. |
CreateAct - No The parameter determines whether to create activities for the sent emails. If the parameter is set to Yes, the Create activities flag is checked automatically. |
DateFrom - 693594,0 Date from. The value is prefilled in the field in the form. |
DateTo - 693594,0 Date to. The value is prefilled in the field in the form. |
DetailProt - No If the parameter is set to YES, the Detailed log flag is checked automatically. |
EditMail - No If the parameter is set to YES, the Edit mail field is checked automatically. |
FilterContactPers - No Parameter for presetting the Container of contact persons option. |
FilterCustom - No Parameter for presetting the Container of Suppl./Cust. option. |
FilterPart - No Parameter for presetting the Container of partners option. |
CheckPermission - No The parameter can be used to determine whether to check the sending permission. |
LogoPictureHeader - Header.wmf Name of the company logo for the email footer. |
LogoPictureFooter - Footer.wmf Name of the company logo for the e-mail header. |
ShowLogoFooter - No Yes - the logo is displayed in the e-mail footer. |
ShowLogoHeader - No Yes - the logo is displayed in the e-mail header. |
SplitFor - 10 The parameter specifies the maximum number of addresses in an email. The value is pre-filled in the Split after field. |
Subject Parameter for pre-filling the email subject. Text from a field can be pre-filled into the text using the [NazevField] definition. |
TypeOfEmailAddr - EMAIL1 Parameter for the type of address to which the emails are to be sent. |
Message Parameter for defining the email text. You can add the text of an addendum %ZkratkaDodatku% or text from a field [NazevField]. Further text can be entered before and after these fields. |
This script makes it possible to create and send bulk emails for Partners, Contact persons and Suppl./Cust.. The script can be run over any of the books mentioned. This function is also included in the tree menu of the Marketing module. Before using the script, the mailbox and the default account for sending must be set correctly. After the script is started, a user form with 2 or 3 tabs is displayed.
Tab - Addresses
On this tab, you can select the addressees to whom the created emails will be delivered.

Picture: Bulk sending of emails form - Addresses page
Addressees, i.e. Partners, Contact persons or Suppl./Cust., are loaded from the container by checking fields on this page of the form. If any of the Container of partners, Container of contact persons or Container of Suppl./Cust. fields is checked, companies or contact persons are loaded from the containers of these modules. After loading, all records are automatically marked with asterisks. This marking can be adjusted using the standard asterisk icons or the Shift+Enter key combination.
Description of fields:
Edit email |
If this field is checked, the email is displayed before it is sent to the recipient. |
Create activities |
Checking this option makes it possible to create activities for Partners and Contact persons. When it is checked, page 2 becomes available, where basic data about the activity can be entered. |
Detailed protocol |
Provides information not only on the number of sent emails and created activities, but also on what information was sent to which addresses and for whom the activities were created. |
Divide after |
The value entered here specifies the maximum number of addresses in one email (i.e. if the number is 10 and there are 100 addresses to send to, only 10 emails will be sent). |
Type of address |
Selection of the type of address to which the emails are to be sent. This is the type of electronic address that the addressee has created on their card. |
The addresses to which the emails will be sent are displayed for the individual addressees in the Mail column. This column is editable and the email addresses can still be changed here. An important option on this page of the form is Check sending permission. If this field is checked, the function verifies the status of the Send information field in the electronic addresses. If sending is not permitted, the email is not sent to this address.

Picture: Electronic addresses form
Form tab - Email
This tab is used to fill in the email text itself and to assign an attachment. The mail text can also be entered in HTML format. For the text to be displayed in the mail in HTML view, the mail client in IS K2 must be set to Oultlook (see the Mailbox settings picture).

Picture: Bulk sending of emails form - Email page

Picture: Mailbox settings
In the upper part of the form on this page, there are fields with which the Subject and Message of the email can be preset. In the lower part, Attachments can be inserted into the email. The path where the specific attachment is stored is always displayed.
Tab - Activity
Here you can predefine the fields for creating activities. This page is displayed only if the Create activities field is checked on the Addresses tab.

Picture: Bulk sending of emails form - Activity page
The user can fill in the relevant values in the fields on this page of the form, and these are then inserted into the newly created activities. These are the fields Type of activity, Abbreviation, Description, Place in folder, Campaign, Opportunity, Date, Time, Responsible person and Comment. After pressing the OK button, the emails are sent to all marked recipients and activities are created for these emails.
Bulk creation of letters
Process number: CRM009 |
Script ID number: FCRM029 |
File: Send_Letter.pas |
Script description: The script enables bulk creation of letters, their printing, and creation of activities and records in the Outgoing letter mail book. |
||
Address in the tree: [Marketing - CRM] [Partners] [Bulk correspondence] [Marketing - CRM] [Contact persons] [Bulk correspondence] |
||
Script parameters:
AddrType - FIR Type of address for loading from contact persons. |
AddrType - OV Parameter for choosing the book in which the envelopes of outgoing letter mail will be created. |
ConnectedTo9Side - Yes Yes - the created letter is attached as an attachment on page 9 of the outgoing letter mail envelope. |
KindOfShipment - 2000000235 This parameter can be used to choose the consignment category. The entered value is filled in the created outgoing letter mail envelope. |
LogoPictureFooter - Footer.wmf Name of the company logo for the letter footer. |
LogoPictureHeader - Header.wmf Name of the company logo for the letter header. |
ShowLogoFooter - Yes Yes - displays the logo in the letter footer. |
ShowLogoHeader - Yes Yes - displays the logo in the letter header. |
TypeOfAddress - 2 Type of the customer's address. The address according to the selected type is filled in the letter or in the created outgoing letter mail record. 1 - invoice address, 2 - delivery address, 4 - correspondence address. |
TypeOfShipment - 108 Parameter for choosing the type of letter. The entered value is filled in the item of the created outgoing letter mail envelope. |
ReportName Parameter for printing a special report. This special report can be stored in the Special directory or in the DB storage. |
This script makes it possible to create bulk letters for Partners, Contact persons and Suppl./Cust.. It is also possible to create activities and, for the individual letters, the corresponding records in the Outgoing letter mail book. The script can be run over any of the books mentioned. The function is also included in the tree menu of the Marketing module. After the script is started, a user form with several tabs is displayed.
Initial page of the form 0 - Addressee
This page is used to select the addressee for the letters being created.

Picture: Bulk sending of letters form - Addresses page
Addressees are loaded into the form by checking the Container of partners, Container of contact persons, Container of Suppl./Cust. fields. When these fields are checked, companies or persons from the containers of these modules are loaded into the form. After loading, all records are automatically marked with asterisks. This marking can be adjusted using the standard asterisk icons or the Shift+Enter key combination. The letters are then created only for the marked addressees. The Partners, Contact persons and Suppl./Cust. buttons are used to switch to the relevant book. They always become available after checking the field for inserting the addressee from the relevant container.
Description of fields
Address of parent co. |
If the field is checked, the script creates the letter, and possibly also the outgoing letter mail document, for the headquarters of the given customer (the address of the headquarters is inserted into the Addressee field). |
Type of address |
Field for selecting the type of the customer's (partner's) address. The Invoice, Delivery or Correspondence address, if set on the customer card, is filled in the letter being created or in the outgoing letter mail document. |
Print letter |
Only if this field is checked are the individual letters printed, after the necessary parameters are set and the OK button is pressed. |
Create envelopes |
If the Create envelopes field is checked, records are created in the Outgoing letter mail book for the individual marked addressees after the OK button is pressed. A new Envelope tab is also displayed in the form, where you can define some values that are filled in the created outgoing letter mail envelopes. |
Create activities |
The script also enables creating activities for the individual letters for the marked addressees. When this field is checked, the Activities tab is displayed in the form, where basic data about the activity can be entered. |
Type of address for contact persons |
If the letters are created for contact persons, the type of their addresses can be selected in this field. These addresses are filled in the created letter or in the outgoing letter mail envelope. |
Preview |
Button for displaying a preview of the letters in progress. |
Page 1 - Settings
Here you can choose the texts that will appear in the header and footer of the letter. You can also set the letter reference, or the address and the heading (subject of the letter).

Picture: Bulk sending of letters form - Settings page
In the upper part of the form there are fields that the user can use to enter any text on the left, in the middle or on the right in the letter header. Below the header, the letter reference can be set in this form. When the Brand field is checked, further fields of the form become available that simplify creating the letter reference. Using these fields and flags, you can determine whether to create the reference in the letter from the current date or to fill in your own text. You can also set the numbering of the letter reference here and determine whether to display the own text Brand.
On this tab of the form, you can also set the address of the letter. By checking a field, the user can determine the position of the address (left, right). By checking the relevant fields, the individual parts of the address including the salutation can also be suppressed or displayed.
The last option on this page of the form is the text of the letter footer. There are 3 fields in the lower part of the form for this purpose (depending on where the footer text will be placed).
Page 2 - Letter text
The letter itself is created here. This text can be formatted, and templates or letters in progress can be saved for later use. Pictures can also be inserted here. The limitation, however, is that the letter should not be longer than one A4 page. Longer text cannot be displayed and printed. The entered text is also filled in the item (letter) of the created outgoing letter mail envelope.

Picture: Bulk sending of letters form - Letter text page
Page 3 - Activity
This page of the Bulk sending of letters form is used to predefine the fields for creating activities. This tab is always displayed after checking the Create activities field on the 0 - Addressee page of the Bulk sending of letters form.

Picture: Bulk sending of letters form - Activity page
The user can fill in the relevant values in the fields on this page of the form, and these are then inserted into the newly created activities. These are the fields Type of activity, Abbreviation, Description, Place in folder, Campaign, Opportunity, Date, Time, Responsible person and Comment.
Page 4 - Envelope
This tab is displayed only if the Create envelopes field is checked on the 0 - Addressee page.

Picture: Bulk sending of letters form - Envelope page
The 4 - Envelope page of the Bulk sending of letters form is used by the user to predefine some fields of the outgoing letter mail document being created. These are the fields Type of letter, Consignment category and Description. You can also choose the book in which the outgoing letter mail envelopes will be created.
After filling in the necessary fields on the tabs, we can use the Preview button to create a preview of the report with the individual letters. These letters can be printed, and after returning, the predefined texts and the header, footer etc. settings can still be changed. The user can then close the form with the Close button without saving any changes or creating documents.
The user can print the letters, including the optional creation of activities recording that the letter has been processed and of outgoing letter mail envelopes, by pressing the OK button.
Import Contact persons
Process number: CRM009 |
Script ID number: FCRM043 |
File: ImKos.PAS |
Script description: Script for importing Contact persons from an "*.xls" file. |
||
Address in the tree: [Marketing - CRM] [Contact persons] |
||
Script parameters:
FindPartBy - 0 Parameter for specifying how the partner of the imported contact person is searched for. 0 - the script searches for the partner by number, 1 - the script searches for the partner only by abbreviation 1, 2 - the script searches for the partner only by abbreviation 2, 3 - the script searches for the partner only by name, 4 - the script searches for the partner only by Comp. Reg. No. |
XMLFile - ImportPart.xml Parameter for specifying the name of the "*.xml" file in which the current settings and field pairing are saved. |
Spreadsheet - 0 Parameter for choosing the spreadsheet application for the import. 0 - the script automatically detects the spreadsheet application for the import, 1 - the script uses the Microsoft Excel spreadsheet application for the import, 2 - the script uses the LibreOffice spreadsheet application for the import. |
This script makes it possible to import contact persons into IS K2 from an "*.xls" file and thus simplify their entry into the system. Together with the contact persons, their electronic addresses can also be imported.
When preparing a file suitable for import, make sure that the header with the column descriptions is on row 1 and the data to be imported start from row 2.
After starting the script, the prepared "*.xls" file must be loaded into the Input file field. The user can do this with the Load file button.
After selecting and loading the input file, the 1st row of the imported file is displayed in the left part of the script form, in the Input columns part. The With header option means that the data will be imported from row 2, otherwise from row 1.

Picture: Loading the import input file
Import settings:
Do not import duplicate records |
Only the contact persons that are not in the K2 database are imported. |
Allow to import duplicate records |
All records are imported regardless of matching company names in the database. |
Rewrite duplicate records and import new ones |
All records are imported. The records that are in the database will be changed, the others will be created as new. |
Rewrite duplicate records only (do not import new ones) |
Only duplicate items are imported, i.e. the records that are already in the K2 database. |
Import of subordinate modules |
By default, set including the import of subordinate modules. If the field is checked, subordinate modules can be imported, i.e. electronic addresses and notes. |
During the import, duplicity of contact persons is always evaluated according to the Name, Surname and the Partner to whom the person is assigned. The partner of this contact person is searched for by Number, Name, Abbreviation 1, Abbreviation 2 or Comp. Reg. No., always depending on how the "FindPartBy" script parameter is set. This parameter must therefore always be set according to how the partner of the imported contact person is specified in the input file.
After loading the fields of the input file and setting the import, the individual columns of the input file must be linked with fields in IS K2.
Assigning fields
- We select the Name in the Input columns part.
- We select the Field in the Data module fields part.
- We press the Link button.
The Input name and Input column columns in the Data module fields part show the names of the assigned columns from the imported file, and at the same time the number of assignments is counted in the Input columns part.
To detach fields, simply select the field in the Data module fields part and press the Detach button. The field on which the cursor is placed is always detached.
Required field - The
flag in the PP column marks the required fields in K2 to which columns from the input file must be assigned and a Def. value entered.
Def. value
- By selecting or entering a default value, the specified default value can be imported into the K2 database without a column from the "*.xls" file being assigned.
- If both a column from the input file and a default value are assigned, the default value will be imported when an empty value occurs in the input file.
- Filling in a default value is mandatory for required fields and for fields that refer to code lists and for which updating is not enabled, see below.
- A default value can be inserted via the icon in the upper part of the form or using the Enter key on the record.
Updating code lists ![]()
- The
flag in the A column means that for fields linked to code lists, updating of these code lists can be enabled during the import. If updating of the code list is enabled, the A column will contain the
flag. - If updating of the code list is not enabled, a default value must be entered, which will be imported if the assigned column of the input file contains an empty value or a value that is not in the code list.
- Updating can be enabled via the
icon in the upper part of the form or using the Shift+Enter keyboard shortcut on the record.

Picture: Assigned import field
Using the Import Contact persons script, the electronic addresses or notes of contact persons can also be imported together with them. In the Item modules part of the script form, the required module must be opened by clicking. The Import of subordinate modules form is displayed.

Picture: Import of subordinate modules form
In this form, the relevant K2 fields must again be linked with the columns of the input file, or default values must be assigned to these fields. Linking is done using the Link button. When the individual fields are paired or have a default value set, the user must save this link. This is done with the Save button.
The same procedure must be followed when importing notes.
When working with this function, the form settings, i.e. the assignment of individual fields, can always be saved using the Save Settings option.
Check cont. pers. surname by partner
Process number: |
Script ID number: FCRM004 |
File: RF_CHECKCONTACTS.PAS |
Script description: Check of a contact person when saving. This is a registered function script that is run when a contact person is saved. It checks whether the entered surname already exists for the partner. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
Finding cyclic activities
Process number: CRM001 |
Script ID number: FCRM005 |
File: AKT_CYKLY.PAS |
Script description: This script searches for and lists the found cyclic activities. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
Open invoices in
Process number: CRM001 |
Script ID number: FCRM001 |
File: OPENINVOICEIN.PAS |
Script description: The script creates a filter of invoices in for the given partner from a specific activity. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
This script makes it possible to create a container of invoices in from the Activities book. The script can only be run over the Activities book. From the activity on which the cursor is placed, the function determines the partner and the customer, finds the customer's invoices in and creates a container of these invoices.
Overwrite address types
Process number: CRM010 |
Script ID number: FCRM006 |
File: MAR_ZTA.PAS |
Script description: This is a service script for rewriting the address types of contact persons. The script searches the special code list for the address types specified in the script parameters and rewrites their abbreviations to "PRI" and "FIR". If it does not find such an old address type, it adds a new record to the special code list. |
||
Address in the tree: |
||
Script parameters - default value:
ZkrFiremni Company address that is to be rewritten to the FIR type. |
ZkrPrivatni Private address that is to be rewritten to the PRI type. |
Move activities to another contact person
Process number: CRM010 |
Script ID number: FCRM009 |
File: KOS_COPY.PAS |
Script description: The script enables moving activities between Contact persons. |
||
Address in the tree: [Marketing - CRM] [Contact persons] |
||
Script parameters:
No parameters. |
Using this script, the user can move Activities from one Contact person to another. After the script is started, a simple form for selecting Contact persons is displayed.

Picture: Form for selecting contact persons
In the upper field of this form, the user selects the Contact person whose activities they want to move. The Contact person over which the script is run is always pre-filled here. The lower row of the form is used to select the contact person to whom the activities will be moved. The user selects from the Contact persons code list. After pressing the OK button, a warning message is displayed in which you must confirm once again whether the activities are really to be transferred. The moved activities remain linked to the original Partner. A text stating that the activity has been moved and from which Contact person it was moved is always inserted into the comment of the moved activity.
Conversion of el. addresses
Process number: CRM010 |
Script ID number: FCRM052 |
File: ElAddrMove.pas |
Script description: Script for bulk conversion of electronic address types for partners and contact persons. |
||
Address in the tree: |
||
Script parameters:
FromEAType1 - EMAIL1 Abbreviation of the electronic address type that will be converted. |
FromEAType2 - FAX1 Abbreviation of the electronic address type that will be converted. |
FromEAType3 - TEL1 Abbreviation of the electronic address type that will be converted. |
FromEAType4 - TEL2 Abbreviation of the electronic address type that will be converted. |
ToEAType1 - EMAILB Abbreviation of the target electronic address type. |
ToEAType2 - FAXB Abbreviation of the target electronic address type. |
ToEAType3 - TELB Abbreviation of the target electronic address type. |
ToEAType4 - MOBB Abbreviation of the target electronic address type. |
This script makes it possible to convert electronic address types for partners and contact persons in bulk. The partners or contact persons for whom we want to change the type of electronic addresses must be placed in a container. The script can only be run over the container of Partners or Contact persons. The type of electronic addresses we want to convert must be set using the FromEAType and ToEAType parameters. In the FromEAType parameter, enter the type of the electronic address we want to change (convert), and in the ToEAType parameter, the type of address to which the electronic address will be converted.
By default, 4 types of electronic addresses are always converted. If we want to convert, e.g., only one type, we include the FromEAType1 and ToEAType1 parameters with the selected values in the function. The remaining parameters must be set with an empty value! If we did not set the remaining parameters with an empty value, the function would convert the electronic addresses according to the default settings of these parameters.
After the conversion is performed, a resulting log with a list of the changes made is always displayed.
Verification in business register
Process number: CRM009 |
Script ID number: FCRM024 |
File: OVEROR.PAS |
Script description: Function for verifying a Partner in the Commercial Register. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
This function can be run using the Verify button on page 1 of the Partner card. After start, the website of the Commercial Register is automatically displayed, where the correctness of the company name entry can be checked immediately. Together with the website, a question about the correctness of the verification of the entry in the Commercial Register is displayed. Selecting Yes writes the verification date to the Partner card, or overwrites the original date with the current one. The No option keeps the original verification date. The script cannot be run over the Suppl./Cust. card.
Attach order to activity
Process number: CRM009 |
Script ID number: FCRM023 |
File: OBJ_AKT.PAS |
Description: The script is used to link a Purchase order with an Activity. When run over a purchase order, all activities of the OFI type are displayed in the filter according to the customer from the order. After an activity is selected, the abbreviation of the offer linked to the activity is changed according to the purchase order number. A link to the purchase order is saved on page 9 of the activity, and a link to the activity is saved on the purchase order. Furthermore, the items of the purchase order are saved on page 8 of the Activity. |
||
Address in the tree: |
||
Script parameters:
No parameters.
|
Saving an activity to the calendar
Process number: CRM001 |
Script ID number: FCRM038 |
File: Act_SaveToVCalendar.pas |
Script description: Using this script, you can create an event in the calendar of the mail client in use from a specific activity (e.g. of the TSK Task type) and then save this event. Using the script parameters, you can influence from which activity fields the individual aspects of the created event will be defined. Another function of the script is the option of sending a Meeting to a contact person. A Meeting is created from the activity and sent to the email address of the responsible person. If the user uses the Built-in client, the Meeting is sent directly. If the user uses a mail client, e.g. Outlook, the Meeting is sent only if the user does not edit the email before sending (the EditMail parameter set to No). If the email is edited before sending, an email message with the Meeting as an attachment is sent to the contact person. This functionality is available by setting the SendToMail script parameter to Yes. You can also choose the type of electronic address of the contact person from which the email address will be loaded. |
||
Address in the tree: |
||
Script parameters:
SendToMail - No Yes - a Meeting is created and sent to the email of the responsible person specified in the activity. No - only a calendar event is created from the activity. |
EditMail - Yes Yes - the email can be edited before sending. |
EmailSubject Parameter for pre-filling the email subject. |
EmailText Parameter for pre-filling the email text. |
EmailType - EMAIL1 Parameter for selecting the type of electronic address of the responsible person. |
LocationField Activity field for defining the location. |
DecriptionField - KomMem Activity field for defining the description. |
CategoriesField Activity field for defining the category. |
PriorityField Activity field for defining the priority. |
DateFromField - DateFrom Activity field for defining the date from. |
DateToField - DateTo Activity field for defining the date to. |
SubjectField - Zkratka Activity field for defining the subject. |
Close opportunity
This function allows the user to close an ongoing opportunity by creating activities of the selected type and including them in the opportunity. After pressing Alt+F3, a user form is displayed in which you can fill in the individual fields that will be filled in the created activities.

Picture: Closing an opportunity form
Description of fields:
Result |
Selection of the method of closing the opportunity. Choice of options - Win, Loss. Each of the two options has a corresponding bitmap in the U column on page 0. If the user selects the win option, the own company is set in the Supplier field. If the user selects the loss option, the Supplier field is cleared. |
Opportunity |
The current opportunity that is being closed and over which the function is run. |
Date |
Current date and time. |
Winner |
Field for selecting the winner of the opportunity. This is a mandatory entry. The field is a link to the code list of competitors. |
Supplier |
Field for selecting the partner who won the competition. This is a mandatory entry. |
Reasons |
Field for selecting the reason for the win or loss of the realized opportunity. This is a link to the code list of reasons. Any number of reasons can be selected. The user must enter the individual reasons into the code list. This is a mandatory entry. |
Description |
The description "Closing an opportunity" or any description of the activity. |
Contact person |
Field for selecting the contact person with whom negotiations took place. |
Partner |
Field for selecting the partner with whom communication took place within the opportunity. The value in this field is pre-filled from the current opportunity and cannot be changed in the form. |
Campaign |
If the activity relates to a campaign, we insert the relevant campaign into this field. |
Responsible person |
The entry is inserted from the settings in the user parameters. This is the responsible person of the company. |
Status |
Current status of the opportunity. The field is pre-filled according to the value selected in the Closing method field. The value to be pre-filled here can be entered by the user in the opportunity settings - the View / Options menu, in the Default status for Win and Default status for Loss fields. If no default status is entered in the opportunity options, the user can select the value of the Status field in the form or change an existing one, and it will be inserted when the opportunity is closed. |
Date |
Expected date of realization. (Displayed only for the "Win" closing method.) |
Volume |
Expected volume (monetary value) of the activity. (Displayed only for the "Win" closing method.) |
Comment |
Field for an optional comment on the activity. |
The user always runs this function over the specific opportunity that they want to close. Some data from this opportunity is automatically filled in the form. In the Winner field, the user must select the company that succeeded in this opportunity. The selection is made from the code list of competitors, in which the user's company is also entered. Furthermore, the reason or reasons for the win or loss of this opportunity must be selected in this form. The user also fills in some other data here that will be filled in the resulting activities, and in the lower part of the Closing an opportunity form, the user can use the space for a comment on the activity.
The opportunity itself is closed in such a way that the function creates the relevant activities for the opportunity and then automatically confirms this opportunity (1st confirmation). One activity of the AGR - Contract or CLS - Closed type is always created, depending on whether the winner is the user's company or a competing company.
Create verses of activities
Process number: CRM001 |
Script ID number: FCRM027 |
File: AKT_VER.PAS |
Script description: The script enables creating new subordinate activities. |
||
Address in the tree: |
||
Script parameters:
No parameters. |
Using this function, new subordinate activities can be created for activities by rewriting them. The script can only be run in Change mode over a specific activity. Saving the new version of the activity creates a new subordinate activity, and the original activity remains in Change mode. The values on the original activity always change depending on whether it is tracked or not.
If the user creates a subordinate activity from an original non-tracking activity, the new subordinate activity is saved as non-tracking and the original activity returns to the state before rewriting, i.e. to the Change state.
When a tracking activity is rewritten, the new activity is always saved as non-tracking, and all values on the original activity remain in their original state except for the activity type. This changes to the TSK (task) type. This means that this activity should represent a task resulting from the last created subordinate activity.
Upon confirmation, the part relating to Realization (probability, date, volume, acquisition) is copied from the newly created activity to the original activity.
Searching for partners in the vicinity
Process number: CIS002 |
Script ID number: FCRM057 |
File: FindPartInArea.PAS |
Script description: The script searches for partners in the vicinity of the currently marked partner or in the vicinity of points specified by latitude and longitude. The vicinity is defined by a number of kilometres, which the user also enters in a parameter. |
||
Address in the tree: |
||
Script parameters:
CurrentPartner - Yes If the value "Yes" is entered, partners are searched for in the vicinity of the currently marked partner. If the value "No" is entered, the search is performed according to the entered latitude and longitude. |
km - 30 Number of kilometres around the selected partner within which to search. |
Latitude The latitude is entered as a decimal number that determines the starting point of the search for partners in the vicinity. It is entered in combination with the "Longitude" and "km" parameters. |
Longitude The longitude is entered as a decimal number that determines the starting point of the search for partners in the vicinity. It is entered in combination with the "Latitude" and "km" parameters. |
Creating addresses of contact persons from partners
Process number: CRM009 |
Script ID number: FCRM013 |
File: KONT_ADR.PAS |
Script description: This function is used to fill in the addresses of contact persons from partners. |
||
Address in the tree: |
||
Script parameters:
FirAddressType - FIR Type of the created address. |
PravoNaRec - Yes Ignore records to which I have no right. |
Using this script, Contact persons can be supplied in bulk with the address from the Partner. The script goes through the contact persons of the partners, and if any of them does not have an address of the "Company" type, it creates a new "Company" address for the contact person. It is always the address from the Partner, and after insertion we can always find it on page 3 of the Contact person in the Addresses field.
Create activity
Process number: CIS002, CRM009, |
Script ID number: FCIS017 |
File: CreateActivity.PAS |
Script description: Using this script, you can create activities for purchase and sales documents, partners, contact persons and activities. |
||
Address in the tree: [Marketing - CRM] [Partners] [Marketing - CRM] [Contact persons] |
||
Script parameters:
ActComment Parameter for filling in the activity comment. |
ActDescription Parameter for setting the activity description. |
ActType Presetting of the activity type in the script form. |
CurrentDocument - No Yes - Creates activities for the current record. |
Using this function, the user can create activities for any primary documents of purchase, sale, activities, partners, opportunities and contact persons and link these documents/records with the activities. The script can be run over marked records, a filter or a container. After the script is started, a user form is displayed in which you can fill in some fields whose values are then filled in the created activities. These are the fields Type of activity, Specification, Description, Place in folder, Campaign, Opportunity, Date, Time, Responsible person, Comment template and Comment. Some values in the form fields can be pre-filled after the function is started. The user achieves this using the script parameters.

Picture: Activity parameters form
The linking of documents/records with the created activities can be tracked on the specific documents and records on the Attachments tab on the Activities sub-tab. For activities, in the Document field.
The function enables moving new activities to folders. The specific folder must always be selected in the Place in folder field.
Displaying partners on a map
Process number: CRM009 |
Script ID number: FCRM059 |
File: Maps_ShowCustomers.pas |
Script description: Script for displaying partners on a map |
||
Address in the tree: |
||
Script parameters:
BodyHTML HTML code with which the user can define their own map description |
CenterLatitude - 49.904188 Latitude parameter - according to which the map is centred. The coordinates must be entered in the format with a decimal point, e.g. 49.907188 |
CenterLongitude - 15.715111 Longitude parameter - according to which the map is centred. The coordinates must be entered in the format with a decimal point, e.g. 49.907188 |
ColorField - Trida Name of the field according to which partners are distinguished by colour into groups |
CurrentDestinationLatitude - 49.8581094 Parameter for entering the current position - latitude. The coordinates must be entered in the format with a decimal point, e.g. 49.907188 |
CurrentDestinationLongitude - 18.2736056 Parameter for entering the current position - longitude. The coordinates must be entered in the format with a decimal point, e.g. 49.907188 |
DetailText - ''<div id="content"> <h1>[Name]</h1> <div id="bodyContent"> <h2>[Abbr1]</h2> <p><span>Address:</span> [AddressId;OneLineCalc]</br><span>GPS:</span>[AddressIdCoordinatesCalc]</br> <p><span>Comp. Reg. No.:</span> [CompanyRegNumber]<br/><span>VAT Reg. No.:</span>[VATRegNumber]</p><p><span>Class:</span> [classification]<br/> <span>Resp. pers.:</span> [ResponsiblePersonId;Surname]</span></p> </div> </div>' Parameter that defines the description of the Partner detail |
LegendTitle - Třída Legend caption of the display by field |
ShowInK2 - No The value Yes is currently not supported due to the end of Chromium support. |
Using this script, Partners can be displayed on a map according to their GPS coordinates. The script can be run over a book, a filter, a selection, marked records or one specific record. After start, the map is displayed centred according to the "CenterLatitude" and "CenterLongitude" parameters. The default value is the centre of the Czech Republic. The map header contains information about the number of companies that could not be displayed due to missing GPS coordinates.

Picture: Displaying Partners on a map with Partner detail
By clicking a coloured map point, which shows the location of a Partner according to the entered GPS coordinates, we display basic information about the Partner. The structure of the displayed information can be changed with the "DetailText" parameter. In the parameter, the field names must be specified in HTML code in square brackets; for a linked field, separated by a semicolon, e.g. [ZodpOs;Prjm]. In addition to information, two further functions are available in this Partner detail - Navigate and Display. With the Navigate button, the user can display a route plan to the given Partner from a specific place, while the starting position is set in the "CurrentDestinationLatitude" and "CurrentDestinationLongitude" parameters. With the Display button, the user can display the Partner card in IS K2 (if the ShowInK2 parameter is enabled).
Partners are displayed on the map in various colour groups. Partners are divided into groups according to the field selected in the "ColorField" parameter. Any field, including a linked field, can be entered in the parameter. If it is a linked field, the link must be separated by a semicolon, e.g. ZodpOs;Prjm. Colours are assigned to the groups automatically. The legend description can be changed in the "LegentTitle" parameter. For each group, the number of Partners displayed in the given group is shown.