UiPath Documentation
apps
latest
false
Legacy Apps user guide
important :
For documentation on app projects in Studio Web, refer to the App Projects chapter in the Studio Web documentation: https://docs.uipath.com/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web.

Function: Count

Use this function to count the number of records in a table.

SyntaxDescription
Count(Items [, Condition])Returns the number of records in a table.

Arguments

For more information on arguments, see the table below.

ArgumentTypeDescription
ItemsRequiredA list or a table.
ConditionOptionalA condition that must evaluate as true for the item to be counted.

Example

Assume JamTypes is a list of different kinds of Jam:

List(“Apricot”, “Blackberry”, "Blueberry", "Cherry", “Raspberry”, “Peach”, “Strawberry”)
List(“Apricot”, “Blackberry”, "Blueberry", "Cherry", “Raspberry”, “Peach”, “Strawberry”)

Assume process output JamPrefrences returns the following DataTable:

Name (Text)Country (Text)Jam Preference (Text)
AdahAustraliaApricot
BettyBrazilBlackberry
BobBrazilBlueberry
CarinaCyprusCherry

Count(JamTypes): 7

Count(JamPreferences): 4

  • Arguments
  • Example

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated