Import currency rates from Sftp to reporting

File TransferRecipe ToolsDeveloper ToolMarketingData ParserUtilitiesAPI Integration

What it does

When a new or updated file lands in the Sftp currency rates directory, this automation downloads and parses the CSV data. It generates a transaction ID, sends the rates to the reporting function, archives the file, and triggers a daily rates report.

Who it's for

Finance teams who need currency rates imported and reconciled without manual file handling.

How teams use this

Import daily currency rates automatically

Currency files arrive in Sftp each day and are parsed, tracked with a transaction ID, and sent to reporting without manual intervention. The team receives updated rates in the reporting system the same day.

Reconcile rates across multiple systems

After rates are imported and processed, trigger a daily rates report that pulls from the reporting function and compares rates across systems. Add an Xml Parser step to validate the report output before archiving.

Route rates to a data warehouse

Redirect the parsed currency data to a data warehouse instead of the reporting function by changing the function call destination. The import and archive steps remain the same for all rate files.

How it works

  1. Monitor Sftp for currency files. Watch the Sftp server directory for new or updated currency rate files so the import process starts automatically when files arrive.
  2. Generate a transaction ID. Execute JavaScript code to create a unique transaction ID for tracking this import batch through the reporting system.
  3. Parse the currency file. Download the file from Sftp and parse the CSV with Csv Parser to extract currency rate data into a structured batch format.
  4. Send rates to reporting. Call the Reporting function asynchronously to process the parsed currency rates and update the reporting system with the new data.
  5. Archive and clean up. Upload the original file to the CurrencyRateArchive directory and delete it from the active CurrencyRates directory on Sftp.