Skip to main content
WEBCON BPS
Documentation
2025 R1
  • 2025 R2
  • 2025 R1
  • 2024 R1
  • 2023 R3
  • 2023 R2
English
  • English
  • Polski
ctrlK
  • Introduction
  • Getting started
  • Designer Studio
    • Licenses
    • Main menu
    • Designer Studio Toolbar
    • Applications
    • Processes
    • Workflows
    • Actions
      • Sequence of action execution
      • OCR and scanning
      • Notifications
      • Form
      • Task assignment
      • Privileges and public access
      • Workflow control
      • Substitutions
      • Reports and printouts
      • Digital signatures and certificates
      • Barcodes
      • BPS users and groups
      • Exchange
      • Active Directory
      • SharePoint content
      • SharePoint users and privileges
      • Integration
      • Attachments
        • Add attachment
        • Add attachment to another workflow instance
        • Generate/Update a Word file
        • Generate a PDF file
        • Update attachment
        • Convert Word to PDF
        • Generate a text file
        • Merge attachments into a Word/PDF file
        • Remove attachment
        • Read data from an Excel file
        • Generate an Excel file
      • Database retention
      • OneDrive
      • Performance indicators
    • Automations
    • Importing and exporting applications
    • Variables
    • Business rules
    • Form rules
    • Administration tools
    • Data sources
    • System settings
    • Reports
    • SDK plugin packages
  • Portal
  • Mobile application
  • MS Office Add-Ins
  • Guides
This is documentation for WEBCON BPS 2025 R1, which is no longer actively maintained.
For up-to-date documentation, see the latest version (2025 R2).
  • Designer Studio
  • Actions
  • Attachments
  • Merge attachments into a Word/PDF file
Version: 2025 R1

Merge attachments into a Word/PDF file

The action allows merging files added to the form's attachment panel, resulting in a single file created in the user-defined format.

Action_MergeFiles.png

Attachments to be processed​

1. Category​

The field allows users to select the category in which attachments will be searched. Apart from the categories defined in the process configuration by its designer, three built-in options are also available:

  • All – searches for attachments across all categories;
  • Dynamic – dynamically constructs a category (using variables from the editor) or allows manual entry. The acceptable formats are "ID#Name" or "ID".
    Attachments belonging to the specified category will be selected based on their ID. If searching by ID returns no results, the entered phrase will be treated as a name of a custom category (a category from outside the data source), and attachments belonging to this category will be returned;
  • None – searches for attachments not belonging to any category.

2. Convert​

The field allows users to specify the format of attachments to be processed. Users can select one of the three options available in the drop-down list: All attachments (processes all attachments in supported formats), PDF (processes all attachments in .pdf format, including PDF/A files), or DOCX (processes all attachments in .docx format).

3. Regular expression​

Users can define a regular expression to select attachments for merging. Clicking the Creator button located below the field opens the RegExLib creator tool.

4. SQL query​

Selecting this option results in processing attachments based on the specified SQL query. The query should return the list of attachment IDs from the "WFDataAttachmets" table.

info

Files of the following formats can be merged into a PDF or PDF/A file:
.pdf, .jpg, .jpeg, .jpe, .jfif, .tif, .tiff, .docx, .dotx, .docm, .dotm, .doc, .dot, .xml, .odt, .txt, .htm, .html, .mhtml, .mht, .xhtml, .rtf, .xls, .xlw, .xlt, .xlm, .xlc, .xla, .xlsx, .xltx, .xlsm, .xltm, .xlsb, .ods, .gif, .png, .bmp, .dib, .ico, .csv, .sql, .json, .webp.

Files of the following formats can be merged into a DOCX file:
.pdf, .jpg, .jpeg, .jpe, .jfif, .tif, .tiff, .docx, .dotx, .docm, .dotm, .doc, .dot, .xml, .odt, .txt, .htm, .html, .mhtml, .mht, .xhtml, .rtf, .gif, .png, .bmp, .dib, .ico, .sql, .json, .webp.

Result file settings​

5. File type​

The drop-down list allows users to select one of the three formats for the file containing the merged attachments. The available file formats are: PDF, PDF/A, and DOCX.

6. Merge order​

The field allows users to specify the order in which the attachments will be merged. The following options are available:

  • Chronologically – based on attachments last modification time;
  • According to name – lexicographical order;
  • According to SQL – order of the SQL query results.

7. Category​

The drop-down list allows users to select a category to which the attachment will be allocated. Apart from the categories defined in the process configuration by its designer, three built-in options are also available:

  • The same category as source file – the attachment is allocated to the same category as the source file;
  • Dynamic – dynamically constructs a category (using variables from the editor) or allows manual entry. The acceptable formats are "ID#Name" or "ID". In this mode, it is possible to enter a category from within or outside the data source.
    If the category is provided in the "ID#Name" format, the source must contain a category with the provided "ID". If such a category is not found, the action will result in an error. If the category is provided as the "ID" only, and it is not found in the source, the entered phrase will be treated as a name of a custom category (a category from outside the data source).
  • None – the attachment is saved without a category.

8. Dynamic​

The field becomes active after selecting the Dynamic option in the Category field.

9. Overwrite if attachment with this name already exists​

If the option to overwrite files with the same name is checked, the category of the resulting file selected in the action configuration will be ignored. The overwritten file will remain in the same category as its previous version, and a new historical version of the file will be created.

Previous
Generate a text file
Next
Remove attachment
  • Attachments to be processed
    • 1. Category
    • 2. Convert
    • 3. Regular expression
    • 4. SQL query
  • Result file settings
    • 5. File type
    • 6. Merge order
    • 7. Category
    • 8. Dynamic
    • 9. Overwrite if attachment with this name already exists
WEBCON is the leading European-based provider of a complete Low-code Application Platform for mass delivering business solutions. Companies choose WEBCON to dramatically reduce time and cost of app development. The platform allows them to automate and manage business processes across the entire organization – using a single, unified platform. Thanks to its unique InstantChange™ technology, WEBCON embraces change like no other platform on the market.
  • Copyright © 2025 WEBCON
Platform
  • The latest version
  • InstantChange™ Technology
  • WEBCON BPS overview
Community
  • WEBCON Community
  • Developer portal
Meet us
  • About WEBCON
  • News
  • Contact
Copyright © 2023 WEBCON

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪.

Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.