Sync NetSuite non-inventory sale items to Snowflake

Recipe ToolsMarketingAccountingERPCRMEcommerceFinancial ManagementHR managementDatabase

What it does

When the clock triggers every 5 minutes, this automation searches NetSuite for non-inventory sale items. It upserts them to Snowflake so someone can query the staging table to keep inventory data current across systems.

Who it's for

Data and analytics teams who need non-inventory sale item data from NetSuite available in Snowflake for reporting.

How teams use this

Keep inventory data current in Snowflake

Non-inventory sale items sync from NetSuite every 5 minutes so the staging table always reflects the latest product catalog. Reporting queries pull fresh data without manual exports.

Extend sync to include item pricing

Add a filter to the SuiteQL query to include pricing fields so the staging table contains both item details and current rates. This requires modifying the query step only.

Route items to separate tables by type

Split the upsert step to send items to different Snowflake tables based on a condition, such as active status. The search and query steps stay the same.

How it works

  1. Run every 5 minutes. The automation starts on a 5-minute schedule to keep NetSuite and Snowflake in sync.
  2. Search non-inventory sale items. Search NetSuite for all non-inventory sale items in batches to handle large datasets without timing out.
  3. Query items with SuiteQL. Execute a SuiteQL query in NetSuite to retrieve the full details of non-inventory sale items for the batch.
  4. Upsert to staging table. Upsert each batch of rows into the STAGING.NS_NON_INVENTORY_SALE_ITEM table in Snowflake so new and updated items sync automatically.