Share via


SysDefaultData.createdNumDB Method [AX 2012]

Returns the number of records that already are in the current table.

Syntax

public abstract int64 createdNumDB()

Run On

Called

Return Value

Type: int64
An integer that contains the number of records.

Examples

This example demonstrates the use of the createdNumDB method. However, this example will not compile in a job as it must be run in the context of a class, form, or other object.

public numberOf createdNumDB()  
{  
    return (select count(recid) from myTable).recId;  
} 

See Also

Reference

SysDefaultData Class