Sync SICON pricelist and measures to PRISM
Recipe ToolsDatabase
What it does
When this automation runs on a specified interval, it retrieves pricelist and measures data from Oracle. The batch is processed into contracts and line items, then inserted into SQL Server so someone can monitor the job report to confirm all data synced.
Who it's for
Data and analytics teams who maintain pricing and billing data across Oracle and SQL Server systems.
How teams use this
Sync pricing data on a daily schedule
Run this automation each night to pull the latest pricelist from Oracle and load it into SQL Server so the staging system always has current pricing. The job report confirms all contracts and items were inserted.
Redirect the sync to a different Oracle table
Point this automation to a different source pricelist table in Oracle so a new pricing structure can feed into the staging system without changing the rest of the flow. The contract and item logic stays the same.
Add a data quality check before insert
Include a validation step that filters out rows where contract numbers are missing or bill items are null, so only clean data reaches SQL Server. The automation logs which rows were excluded.
Notify the team when the sync completes
Set a condition to send a message to a monitoring channel with the row counts inserted into each SQL Server table, so the team knows the batch load succeeded. Only the notification step is new.
How it works
- Run on a scheduled interval. This automation starts at the specified time to sync pricelist and measures data from Oracle to SQL Server.
- Get pricelist rows from Oracle. Select all rows from the source pricelist table in Oracle, extract contract numbers and bill items, and log the results to the job report.
- Get measures rows from Oracle. Select all rows from the source measures table in Oracle and log the results to the job report.
- Build contract and item lists. Create pricelist and measures lists, query for distinct contracts, and join contracts with line items using the Smart List collection.
- Insert batch into SQL Server. Insert the batch of contract rows and contract item rows into SQL Server so the staging tables are updated.