Route HTTP webhook events with Employee Code lookup
Recipe Tools
What it does
When a new event arrives via HTTP webhook, this automation looks up the entry in the Employee Code lookup table. It returns the matching record or stops the job if no entry is found.
Who it's for
Operations teams who need to validate employee codes against a lookup table before processing payroll events.
How teams use this
Validate employees before payroll processing
Check that each employee code exists in the lookup table before the payslip summary is retrieved. Invalid codes stop the job so bad data does not flow downstream.
Route events to different payroll systems
Use the lookup table to map employee codes to their assigned payroll system, then route each event to the correct destination. Add a payroll system field to the lookup table so the same webhook handles multiple systems.
Enrich webhook data with employee details
Pull additional employee information from the lookup table such as department or cost center, and include it in the response. Set department and cost center fields in the lookup table to enhance the webhook payload.
How it works
- Receive the HTTP webhook event. A new call for retrieve_payslip_summary arrives via HTTP webhook in real time with employee data.
- Search the Employee Code lookup table. Look up a single entry in the Employee Code lookup table to find a matching record for the employee.
- Return the result or stop. If Entry ID is present, return the response from retrieve_payslip_summary. If not found, stop the job.