Reference > Expressions > Built-in Functions > System Functions > GetNextCounter

GetNextCounter

Instructs the system to increment the specified counter and then returns the incremented value of a counter.

Syntax

GetNextCounter(counterName)

Enabled for

Search/Dashboard No
Business Rules Yes
Quick Actions Yes
Workflow Objects Yes
Reports No

Parameter

counterName

The name of the counter that you want to increment.

Return Value

Text value.

Example

$(GetNextCounter("AccountNumberCounter"))

In the above example, if the value of the AccountNumberCounter counter is 1003 and the increment is 1, then the system updates the counter and returns 1004.