Log extracted hash values on schedule

Recipe ToolsDeveloper Tool

What it does

When a scheduled time arrives, this automation runs Ruby code to extract nested hash values using the .dig method. The extracted data is logged to the job report so someone can verify the output.

Who it's for

Engineering teams who need to extract nested hash values on a schedule without manual intervention.

How teams use this

Extract nested API response data

Pull specific fields from a deeply nested response returned by an API call, using .dig to avoid errors when optional fields are absent. The job report shows what was extracted each run.

Validate hash structure before processing

Use .dig to safely check if required keys exist in a hash before passing data downstream. Log the results so someone can monitor data quality and catch missing fields early.

Transform data for downstream systems

Extract values from a complex hash and reshape them into a format another system expects, logging each transformation step. This keeps the pipeline transparent and debuggable.

How it works

  1. Run at the scheduled time. This automation starts at the interval someone configures, such as daily, weekly, or at a specific hour.
  2. Extract values from hash. Workato Custom Code runs Ruby code that uses the .dig method to safely pull values from a nested hash structure without raising errors if keys are missing.
  3. Log results to job report. Write the extracted hash values to the job report so someone can review what the code pulled and confirm the automation ran correctly.