Sync Oracle employee records to email on schedule

Recipe ToolsMarketingDatabase

What it does

Every 5 minutes, this automation queries the EMPLOYEES_WORKATO table in Oracle and evaluates each employee record. It sends an email when employee ID 101 is found, and logs all other records to the job report.

Who it's for

IT teams who monitor Oracle employee data and need scheduled checks without manual queries.

How teams use this

Monitor a specific employee in Oracle

Run the query every 5 minutes and send an email only when employee 101 appears in the results. The team gets notified without checking Oracle manually.

Expand monitoring to multiple employee IDs

Add more conditions to check for additional employee IDs beyond 101 so the automation alerts on a wider set of records. Only the condition logic needs to change.

Route records to different teams

Send emails to different recipients based on the employee ID so each team receives only the records they own. The query and schedule stay the same.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to check for updates in the Oracle database.
  2. Query the EMPLOYEES_WORKATO table. Select all rows from the EMPLOYEES_WORKATO table in Oracle to retrieve the current employee records.
  3. Evaluate each employee record. For each row returned from Oracle, check whether the EMPID equals 101 to route the record to the correct next step.
  4. Send email for ID 101. When EMPID matches 101, send an email notification so the team is alerted to that specific employee record.
  5. Log other records to job report. For all other employee IDs, log a message to the job report so there is a complete audit trail of the sync.