Sync collection rows with scheduled JavaScript
Recipe ToolsDeveloper ToolMarketing
What it does
When a scheduled trigger fires, this automation runs JavaScript code to merge rows in a collection. The merged result is returned so downstream systems have the consolidated data.
Who it's for
Engineering teams who need to combine collection rows on a schedule without manual intervention.
How teams use this
Consolidate daily collection updates
Run the merge on a daily schedule to combine all collection rows added that day into a single record. Downstream systems receive one consolidated entry instead of multiple rows.
Merge rows before syncing to database
Execute the merge before sending collection data to a database so duplicate or related rows are combined first. Add a database sync step after the merge to keep the database clean and avoid redundant records.
Combine collections from multiple sources
Adjust the JavaScript to merge rows from collections gathered across different systems on a schedule. The automation handles the consolidation so teams see one unified dataset.
How it works
- Start on schedule. At the specified time, the Workato Recipe Function trigger fires and passes the collection data to the next step for processing.
- Merge collection rows with JavaScript. Js Eval executes custom JavaScript code that combines multiple rows in the collection into a single consolidated row with merged values.
- Return merged result. The Workato Recipe Function returns the merged collection so other systems or workflows can use the consolidated data immediately.