Log new leads from HTTP webhook to Oracle
Developer ToolAPI IntegrationRecipe ToolsDatabase
What it does
When a new lead arrives via HTTP webhook, this automation searches a lookup table and Oracle for matching records. It routes the lead to email or updates Oracle based on what it finds.
Who it's for
Sales operations teams who need to log inbound leads to Oracle without manual data entry.
How teams use this
Deduplicate leads before logging
Check Oracle for existing leads so duplicates are not created. Matches route to email for manual review, and new leads are logged automatically.
Apply routing rules from a lookup table
Use the TrialRules lookup table to filter which leads go to email and which go to Oracle. The same flow handles both paths based on the table entries.
Notify sales of high-priority leads
Send leads that match multiple records in Oracle to email so the sales team can investigate before logging. New leads bypass email and go straight to the database.
How it works
- Receive a new lead via HTTP. A new lead event arrives in real time through the HTTP webhook with email and other details.
- Search the TrialRules lookup table. Search for entries in the TrialRules lookup table that match the incoming lead so routing rules can be applied.
- Check Oracle for existing leads. Query the LEAD_GENERATION.LEADS table in Oracle to see if this lead already exists in the database.
- Route based on match count. If more than one row is found, send the lead to email for review. Otherwise, upsert the row to Oracle and make an HTTP request to log the outcome.