Sync NetSuite items to Snowflake every 5 minutes
Recipe ToolsMarketingAccountingERPCRMEcommerceFinancial ManagementHR managementDatabase
What it does
When the clock triggers every 5 minutes, this automation executes a saved search for Item in NetSuite and retrieves all results. It upserts each batch of rows into the Snowflake staging table so the data warehouse stays current with NetSuite inventory.
Who it's for
Data and analytics teams who need NetSuite item data synchronized to Snowflake for reporting and analysis.
How teams use this
Keep inventory data current in the warehouse
Sync NetSuite items to Snowflake every 5 minutes so analysts always have the latest inventory information for reporting. The automation handles pagination automatically.
Extend sync to include custom fields
Add custom NetSuite item fields to the saved search so the Snowflake table includes additional attributes beyond the standard fields. Only the search definition needs to change.
Filter items by type for separate tables
Filter the saved search results by item type and upsert each type to a separate Snowflake staging table so the warehouse organizes inventory by category.
Alert the team when sync fails
Include a condition that checks if the Snowflake upsert fails and sends a notification so the team knows when the sync encounters a problem. The core sync logic stays the same.
How it works
- Run on a 5-minute schedule. The automation starts every 5 minutes to keep NetSuite item data fresh in Snowflake without manual intervention.
- Search NetSuite for items. Execute the saved search for Item in NetSuite to retrieve all matching records, then loop through each page of results to get the complete dataset.
- Upsert items to Snowflake staging. Insert or update each batch of NetSuite items into the Snowflake staging table so new and changed records are reflected in the data warehouse.