Rename File

Purpose

Renames a file.

File Copy Node

Usage

This workflow node renames an existing file to a new name.

Configuration

File Copy Node

Old Filename

The name of the file that will be renamed.

New Filename

The new name of the file.

Path

The logical path to the file from the root of your customer folder on Paygate. You can use the folder browser functionality to set the path if required.

Tokens

Special tokens can be used in path and filename fields to allow them to be dynamically named. For example: MyReport-21-09-2025

Token Meaning Example
{dd} Current Day number 12
{MM} Current Month Number 03
{yy} Current Year (2d) 25
{yyyy} Current year (4d) 2025
{hh} Current Hour (24hr) 07
{mm} Current Minute 45
{ss} Current Second 22
{SSS} Current Millisecond 123

For example, at the time of writing: MyFolder-{dd}-{MM}-{yyyy}

would result in a folder name of: MyFolder-14-03-2025

Follow error path if no matching file found

If selected, if no matching file is found, the node will be deemed to have failed and the error path will be followed. The logs will show the node completed in an error state.

This behaviour can be used to create different workflow paths if, for example, a file is not found.

In the default (off) state the node will always follow the ‘Success’ path, whether a match file was found (and processed) or not.