Share via


JmgTermJob_HRMAbsence.actOprId Method [AX 2012]

Retrieves the absence code of the absence job.

Syntax

public JmgActOprID actOprId()

Run On

Called

Return Value

Type: JmgActOprID Extended Data Type
The absence code of the job.

Remarks

If the absence job is based on a HRMAbsenceCode record, the value of the hrmAbsenceCodeId field is returned. If the job is based on a HRMAbsenceCodeGroup record, an empty string is returned.

Examples

The following code example retrieves the absence code that is associated with the absence job ID 10000285.

JmgTermJob jmgTermJob; 
JmgActOprId operationId; 
 
jmgTermJob = JmgTermJob::construct('10000285'); 
operationId = jmgTermJob.actOprId();

See Also

JmgTermJob_HRMAbsence Class

JmgTermJob.actOprId Method