Skip to main content
Updated Aug 11, 2026

Count Company Data

Use this action when you need to know how many records match a filter, not the records themselves.

Best for

  • Branching on whether anything matched at all
  • Showing a total in a message or notification
  • Checking a limit before creating another record

Main fields

FieldWhat it does
Dynadata Item TypeChooses what kind of records to count
Filter CEL Mongo FilterDefines which records should be counted. Leave it empty to count everything you have access to
SearchCase-insensitive substring term, matched against the fields listed in Search fields
Search fieldsThe field names the Search term is matched against, e.g. ["name","email"]

What later steps can use

The total is available at:

  • step(N).count

Tips

  • Use this instead of Search company data when you only want the number. Search returns one page of results (50 by default), so counting the records it returns silently caps at the page size on larger collections.
  • A count of 0 is a valid answer. When you branch on it, compare the number — step(0).count > 0 — rather than testing the value for truthiness, because 0 is falsy.
  • The same permissions apply as to Search company data: you only ever count records you are allowed to see.
On this page