DataExtensionRowCount()

Returns the number of rows in a data extension.

The DataExtensionRowCount() has one parameter:

  • dataExtensionName (string): Required. The name of the data extension to find the row count of.

This example uses a data extension called "MembershipRewardsProgramme," which contains the data in this table.

MemberIdFirstNameSurnameRewardsPointsRewardsTierArea
1DennisSmithers923742Chelsea
2PoojaChatterjee2010421Hammersmith
3TomásSantos693113Kensington
4Sun-HiKim239994Twickenham
5JianYeh151234Chelsea

To use the function, pass it the name of the data extension.

The function returns the number of rows in the specified data extension, 5.