Skip to main content

scheduling Scenario 2 — Daily Inventory Check for 50 SKUs

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Understand scheduling triggers in RTILA X

Real-World Use Case

Running daily data collection jobs

LIVE DEMO

Inventory Status

SKUProduct NameQuantityWarehouseLast Updated
SKU-0001 Wireless Noise-Cancelling Headphones 145 Warehouse A 2025-01-14T08:00:00Z
SKU-0002 4K Ultra HD Monitor 73 Warehouse B 2025-01-14T08:10:00Z
SKU-0003 Mechanical Gaming Keyboard 210 Warehouse C 2025-01-14T08:20:00Z
SKU-0004 USB-C Docking Station 96 Warehouse A 2025-01-14T08:30:00Z
SKU-0005 Portable SSD 1TB 320 Warehouse B 2025-01-14T08:40:00Z
SKU-0006 Smart Home Hub 118 Warehouse C 2025-01-14T08:50:00Z
SKU-0007 Wireless Charging Pad 88 Warehouse A 2025-01-14T09:00:00Z
SKU-0008 Bluetooth Speaker 154 Warehouse B 2025-01-14T09:10:00Z
SKU-0009 Classic Cotton T-Shirt 420 Warehouse C 2025-01-14T09:20:00Z
SKU-0010 Slim Fit Jeans 186 Warehouse A 2025-01-14T09:30:00Z
EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Daily_Inventory_Check",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/scheduling/2"
    ]
  },
  "datasets": {
    "inventory": {
      "item_selector": "css=table.inventory-table tr",
      "properties": [
        {
          "name": "sku",
          "type": "text",
          "selector": "css=td:nth-child(1)"
        },
        {
          "name": "name",
          "type": "text",
          "selector": "css=td:nth-child(2)"
        },
        {
          "name": "quantity",
          "type": "text",
          "selector": "css=td:nth-child(3)"
        },
        {
          "name": "warehouse",
          "type": "text",
          "selector": "css=td:nth-child(4)"
        },
        {
          "name": "lastUpdated",
          "type": "text",
          "selector": "css=td:nth-child(5)"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.inventory-table"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "inventory"
      }
    }
  ]
}
  

Daily inventory monitoring can be scheduled to run every 24 hours. The extracted dataset includes all available columns from the inventory table.

Did you complete this scenario?

Ready to run this automation?

Copy the project JSON above, open RTILA X, create a new project, and paste it.

This scenario covers 1 RTILA X command and is referenced in 1 learning article.

Continue Learning

Was this helpful?