DataExtensionRowCount
→ numberReturns the total number of rows in a Data Extension.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.DataExtensionRowCount(deName)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
deName |
string | Yes | Data Extension name or external key |
Examples
var count = Platform.Function.DataExtensionRowCount("Subscribers");
Write("Total subscribers: " + count);
// Check if DE is empty
if (count === 0) {
Write("No data available.");
}
Notes
Returns the total row count — not a filtered count. For a filtered count, retrieve rows with LookupRows and check .length.