Sync employee data from SAP to AWS Lambda hourly
Recipe ToolsMarketingWorkatoERPSales EnablementDeveloper Tool
What it does
When the clock reaches a specified hour each day, this automation searches a lookup table for employee groups and runs RFC in SAP to fetch masked data. Batches are sent to AWS Lambda for processing, and someone can monitor the run for errors.
Who it's for
IT teams who need to sync employee data from SAP to AWS Lambda on a schedule without manual steps.
How teams use this
Sync employee records on schedule
Run RFC in SAP every hour to pull masked employee data and send it to AWS Lambda without manual steps. The lookup table controls which employee groups are included each time the automation runs.
Add a second Lambda function
Extend this automation to invoke a second AWS Lambda function after the first one completes. Add another step that calls the new function with the same batch data for parallel processing.
Run at multiple times per day
Change the Clock trigger to fire at two or three specific hours instead of one. The rest of the flow stays the same and processes the same lookup table each time.
Filter employees by department
Add a condition to the lookup table search so only employee records from a specific department are synced. Include that department filter in the search query before RFC runs in SAP.
How it works
- Start at a specified hour. At a configured hour each day in the Asia/Singapore time zone, the Clock starts this automation and checks if the current time matches the trigger hour.
- Search for employee groups. Search the TITUS Employee Group lookup table to retrieve all active employee records that need data synchronization in this batch run.
- Run RFC in SAP for each group. For each employee group found, run RFC in SAP to fetch masked data and add the results to a batch list for downstream processing.
- Invoke AWS Lambda with batches. Send each batch of masked employee data to AWS Lambda so the data is processed and stored in the target system without delay.
- Monitor the entire run. Track all steps in this automation and alert someone if any step fails so issues can be addressed before the next scheduled run.