Clear Row Data

BlockDatabases

Clear selected columns from a database row. Does nothing if the row does not exist.

Inputs

DatabaseRequired

Select the database containing the row.

Row IDRequired

The unique ID of the row to clear.

Example: abc123xyz

ColumnsRequired

Comma-separated column names or column IDs to clear. System columns cannot be cleared.

Example: name, points

Outputs

Row Updated

Whether the row was updated (true/false). False if the row does not exist.

Example: true

Build a bot using blocks like Clear Row Data

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: db_clear_row_data

Inputs

FieldInventScript nameValue
Databasedatabase_id
Row IDrow_ide.g. "abc123xyz"
Columnscolumnse.g. "name, points"

Outputs

FieldInventScript nameValue
Row Updatedupdatede.g. "true"

Example InventScript

clearRowData := db_clear_row_data(Args{
	database_id: "...",
	row_id:      "abc123xyz",
	columns:     "name, points",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Row Updated: " + clearRowData.updated,
})

More databases blocks