This documentation is archived and is not being maintained.
JmgTermJob.actOprId Method [AX 2012]
This method retrieves the operation or activity ID associated with the job.
public JmgActOprID actOprId()
Run On
Called
Depending on the type of job, this method returns one of the following:
-
An operation ID for production jobs.
-
An activity ID for project jobs.
-
An activity ID for IPC jobs.
-
An absence code for absence jobs.
The following example retrieves the operation ID associated to the production job with ID '10000185'.
JmgTermJob jmgTermJob;
JmgActOprId operationId;
;
jmgTermJob = JmgTermJob::construct('10000185');
operationId = jmgTermJob.actOprId();