ResetNextNumber()

A ResetNextNumber() function removes a registered number for the current case with a specified type.

Syntax

ResetNextNumber(NumberType, SerachKey);

Function arguments

  • NumberType – (String) an identification of autonumbering;
  • SearchKey – (String) a key for which cases will be removed.

Return value

This function returns Boolean. The ResetNextNumber() function returns true.

Examples

Example 1

This will remove all autonumeration info for cases with the „DocumentTypeA” number type and the „Employee” field value as for the search key.

ResetNextNumber("DocumentTypeA", [Employee]);