Object.getTimeOutTimerHandle Method [AX 2012]

Returns the timer handle for the object.

public int getTimeOutTimerHandle()

Run On


Return Value

Type: int
The timer handle of the object.

The timer handle of the object is set by calling the setTimeOut method.

The following example sets a timeout, and then cancels it.

public void myJob() 
    int timerHandle = 0; 
    this.setTimeOut(identifierstr(workerFunction), 0); 
    //Perform some operations. 
    timerHandle = this.getTimeOutTimerHandle(); 
    this.cancelTimeOut( timerHandle ); 

Community Additions