AX2363
GetPeriod function
Returns the current period for the system or for a specified table.
Syntax
GetPeriod("PeriodSource", "TableName")
Parameter | Description |
---|---|
PeriodSource |
Specify which current period you want to return:
|
TableName | If the PeriodSource is Table , specify the table name. |
All non-numeric entries must be placed in double quotation marks, unless you are using cell references to reference the text held in another cell.
Remarks
GetPeriod is a non-volatile function.
Examples
=GetPeriod("System")
This example returns the system current period; for example: 6.
=GetPeriod("Table","Pay2021")
This example returns the current period for the Pay2021 table; for example: 20.
=GetPeriod("SystemYear")
This example returns the system current year; for example: 2021.