Count Data
Count Data
Counts the total number of records stored in the robot's internal database. Useful for checking whether the database has data before running batch operations, or for tracking the volume of accumulated information.
Options
Database name
Name of the database to count. When not given, the current robot's default database is used. Optional field.
Returns
Javascript code
js
actions["action-id"].size // number of records in the database (Number)
Field selection
- size — number of records in the database (Number)
Rules and Conditions
- Every field is optional.
- Returns
0when the database is empty.