Organize JSON records by account name or ID
Recipe ToolsMarketingData ParserDeveloper Tool
What it does
When a scheduled interval triggers, this automation parses a JSON document and sorts the data by account name or ID. The sorted results are ready for downstream systems or reports.
Who it's for
Data and analytics teams who need to organize JSON records by specific fields without manual sorting.
How teams use this
Organize customer records alphabetically
Sort JSON customer data by account name in ascending order so the records appear in alphabetical sequence. This makes it easier to find and review accounts in order.
Arrange accounts by ID numerically
Sort the JSON array by ID in ascending or descending order to track accounts by their numeric identifier. The same automation handles both directions without modification.
Add a secondary sort field
Extend the Ruby code to sort by account name first, then by ID when names match. This requires adding a secondary sort condition to the existing code logic.
How it works
- Run on a scheduled interval. This automation starts on a schedule you set, such as daily or weekly, to sort JSON data at regular times without manual intervention.
- Parse the JSON document. Json Parser extracts and prepares the JSON data so the Ruby code can sort it by account name or ID in the next step.
- Sort by account name or ID. Workato Custom Code executes Ruby to sort the parsed data alphabetically by account name or numerically by ID in ascending or descending order.