# 使用写入表进行实时库存管理

此示例展示了如何使用写入表进行实时库存管理。

一家公司销售实体产品，并使用 Qlik 分析库存和订单。当需求突然激增时，新订单可能超出库存，从而减缓订单履行速度。

借助写入表，分析师可以查看产品、仓库数量和未完成订单。当需求激增时，他们可以快速更新要重新订购的单位数量、设置优先级并为采购团队添加备注。点击 Place order 会运行一个自动化，该自动化会收集更新、生成采购订单并将其通过电子邮件发送，从而帮助团队更快地响应不断变化的需求。

## 亲自尝试

1. [创建注释表](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm)，包含以下列。

   用于实时库存管理的注释表。

   用于实时库存管理的注释表。

   用于实时库存管理的注释表。 ![Write table visualization that has been created for real-time inventory management.](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Resources/Images/write-table_inventory-management_chart.png)

2. [Add a button to trigger an automation](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/Button/create-buttons.htm#Execute).

3. Configure the automation and link it to the button. 参阅：

   * [Learn how to configure an automation to connect to the 更改存储 API.](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm#ExampleAutomateMain)

   * [Learn how to run an automation with custom parameters through the Qlik Sense button.](https://community.qlik.com/t5/Official-Support-Articles/How-to-run-an-automation-with-custom-parameters-through-the-Qlik/ta-p/2496485)

4. 测试它：编辑几行，点击 保存，然后点击按钮查看工作流的实际运行情况。

使用写入表进行实时库存管理。

使用写入表进行实时库存管理。

使用写入表进行实时库存管理。 ![显示公司如何使用写入表进行库存管理的图表](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Resources/Images/write-table_inventory-management.png)

## 了解详情

* [注释表](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Analyze/write-table.htm)
* [创建写入表](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/Visualizations/WriteTable/Create/create.htm)