Sync scheduled file merges from Box with lookup table

Recipe ToolsDocument/FileData ParserDeveloper Tool

What it does

When a scheduled interval triggers, this automation searches a lookup table for merge instructions. It downloads matching files from Box, parses the CSV contents, and creates merged files based on the lookup data.

Who it's for

Finance teams who need to merge refund and transaction files on a regular schedule without manual downloads.

How teams use this

Merge refunds and transactions daily

Run the merge every morning so the finance team starts each day with current refund and transaction data in one file. The lookup table controls which files merge and when.

Route merged files to a shared folder

Change the Box destination folder so merged files land in a shared team folder instead of a personal one. The merge logic stays the same.

Add validation rules for data quality

Include custom checks to filter out incomplete records or flag rows that fail validation. Only clean data makes it into the final merged file using Workato Custom Code.

Notify teams when merges complete

Set up a notification to a Slack channel or email when the merged file is ready so the team knows to review it. Add a link to the Box file in the message.

How it works

  1. Start the merge on a schedule. This automation runs at the interval you set, such as daily or weekly, to keep merged files current in Box.
  2. Search the lookup table for merge instructions. Query the RUD_Files_Merge lookup table to find which files need to be merged and when, based on the timestamp in the lookup data.
  3. Download refund and transaction files from Box. Locate the refund and transaction files in Box using the file IDs from the lookup table, then download them to prepare for merging.
  4. Parse CSV contents and merge data. Parse the CSV contents from both files using Csv Parser, combine the data based on lookup instructions, and prepare the merged output.
  5. Create the merged file in Box. Create a new merged file in Box with the combined data so the team has a single source for reconciliation and review.