Check related data when a Box file is trashed or restored
A file moving to or from trash can affect a process. Ask Notis to run a defined ClickHouse query and bring the results into your report.
Trigger
Trashed File State Changed
Triggers when a file's trash state changes in Box. This trigger monitors a specific Box file and fires when its trash state changes (e.g., moved to trash or restored from trash).
Action
Execute ClickHouse Query
Execute a sql query in clickhouse and return the results. this is the primary action for querying data from clickhouse databases.
Why this helps
File cleanup or recovery can have downstream implications that are easy to miss when data checks happen elsewhere.
- Pair file trash state changes with a relevant data query.
- Review query results alongside the file lifecycle event.
- Make cleanup and restore follow-up easier to track.
Setup
Build it in a few focused steps.
- 1Connect Box and ClickHouse once in the Notis portal.
- 2Create an automation in Automations, New Automation, and name it for file lifecycle review.
- 3In one instruction, tell Notis which ClickHouse query to run and how to summarize results for the file state change.
- 4Pick Box's Trashed File State Changed trigger and select the file to monitor.
- 5Choose a report channel, then test with one real trash or restore event and review the results.
Questions about this workflow
Does this delete data from ClickHouse when the file is trashed?
No. It only runs a query and returns results. The action does not change ClickHouse records.
Can it trigger when the file is restored?
Yes. The event covers both moving a file to trash and restoring it.
When this happens · Trigger
Do this · Action
Supported Triggers and Actions
Notis builds workflows that link Box to ClickHouse. A trigger fires from one place; an action lands in another.
Box triggers
ClickHouse actions
Recurring trigger
Notis starts this workflow on a schedule, such as daily, weekly, or during business hours.
Execute ClickHouse Query
Execute a sql query in clickhouse and return the results. this is the primary action for querying data from clickhouse databases.
Webhook trigger
Notis starts this workflow when an external tool or custom backend sends an HTTP request.
Get Database Schema
Get comprehensive schema overview of an entire database including all tables and optionally their column definitions. essential for ai agents to understand the complete database structure in a single call.
Collaboration Details Changed
Triggers when a collaboration's details change (e.g., role, status, expiration). This trigger monitors a specific collaboration and detects when any meaningful field changes, such as role, status, expiration date, access type, or acknowledgment status.
Get Table Schema
Get detailed schema information for a specific table including column definitions, types, keys, and optionally sample data. this is essential for ai agents to understand table structure before constructing queries.
Comment Changed
Triggers when a comment's content or details change in Box. This trigger monitors a specific Box comment and detects when any meaningful field changes, such as message text edits, tagged message changes, or modification timestamp updates.
List ClickHouse Databases
List all databases in the clickhouse instance. useful for discovering available databases before querying tables.
New File Comment Added
Triggers when a new comment is added to a file in Box. This trigger monitors a specific Box file and fires when new comments are detected.
List ClickHouse Tables
List tables in clickhouse databases. returns information about tables including their engine, size, and row count.
File Metadata Changed
Triggers when a file's metadata or properties change in Box. This trigger monitors a specific Box file and fires when changes are detected in key fields like name, description, size, modification time, parent folder, or status.
File Shared Link Changed
Triggers when a file's shared link settings change in Box. This trigger monitors a specific Box file's shared link and fires when changes are detected in the shared link configuration, such as access level, permissions, password protection, expiration date, or vanity URL.
New File Version Uploaded
Triggers when a new file version is uploaded to a file in Box. This trigger monitors a specific Box file and fires when new versions are detected.
Connect any two apps with Notis in the middle.
Box and ClickHouse, or any other combination from 1,000+ integrations.
When this happens · Trigger
Do this · Action
Save your first hour today.
7-day trial of any paid plan, with 20$ of usage included.
No card. Works with personal or business ClickHouse.