FileRelay
Documentation
Try our Sandbox

Document Routing

Subfolder strategies and file-naming patterns for documents delivered through FileRelay connections.

Document Routing

Each connection has its own routing config — folder structure + file naming. A single source can deliver to multiple destinations with different routing at each.

Subfolder strategies

Strategy Path pattern When to use
None (flat) /ABC123.pdf Destination handles its own organisation, or low volume
Date-based (Y/m/d) /2026/04/04/ABC123.pdf High-volume archiving; date-prefix lifecycle rules (e.g. S3 Glacier)
Repository-based /Z1/ABC123.pdf Multiple sources writing to the same destination — keep them separated

File naming

The file name is always the SAP doc_id plus the extension derived from the MIME type — preserves the link back to SAP, no collisions (IDs are unique per repository):

4A3F8B2C1D7E9F0A.pdf

There is no custom naming pattern. If receivers need human-readable names, put the meaning in the subfolder (repository strategy) or in destination metadata mapping (invoice numbers as columns/tags) instead.

Configure

Destination edit screen → pick the subfolder strategy → Save. Each destination on the same source can use a different strategy.

REPLACE: Screenshot of the routing configuration section

Per-destination routing

Same source, different routing per destination — useful for tailoring to each system's conventions:

Connection Destination Subfolder File naming
Z1 → S3 Archive S3 bucket Date-based doc_id
Z1 → SharePoint SharePoint Repository-based doc_id
Z1 → Email Notify Email None doc_id (subject/body use {{placeholders}})

Duplicate file names

If the resolved path already exists at the destination, FileRelay appends a numeric suffix — no overwrites:

invoice_ABC123.pdf
invoice_ABC123_1.pdf
invoice_ABC123_2.pdf

Next steps