Sync NetSuite items to Snowflake staging daily
Recipe ToolsMarketingAccountingERPCRMEcommerceFinancial ManagementHR managementDatabase
What it does
When the scheduled time arrives each day, this automation executes a saved search for items in NetSuite. It retrieves all results in batches and upserts each batch into a Snowflake staging table so the data stays current.
Who it's for
Data and analytics teams who need NetSuite item data refreshed in Snowflake without manual exports.
How teams use this
Keep item master data current
Run the NetSuite saved search every day and upsert results to Snowflake staging so downstream reports always have the latest item information without manual intervention.
Filter items by category before staging
Modify the saved search to include only items in specific categories, then upsert those filtered results to Snowflake. This reduces staging table size and focuses on relevant inventory.
Load to production table instead
Change the Snowflake table target from staging to a production schema so item data flows directly into reports. The sync schedule and NetSuite search stay the same.
How it works
- Run daily at midnight. This automation starts every day at 12:00 AM to keep the Snowflake staging table in sync with NetSuite items.
- Search NetSuite for all items. Execute a saved search in NetSuite to retrieve item records in batches. The search handles large result sets efficiently across multiple pages.
- Upsert items to staging table. Insert or update each batch of item records into the Snowflake staging table NS_NON_INVENTORY_SALE_ITEM so new and changed items are reflected.