PCModelingLibrary::setVersionApprover Method [AX 2012]

Sets or removes the approve status of the specified product model version.

server public static void setVersionApprover(
    PCProductModelVersion _version, 
    boolean _doApprove, 
    PCApprover _workerRecId)

Run On

Server

Parameters

_version
Type: PCProductModelVersion Table
The product model version to approve.
_doApprove
Type: boolean
A Boolean value that indicates whether to set the version as approved; otherwise, false.
_workerRecId
Type: PCApprover Extended Data Type
The record ID of the worker that approves the version.

The state of the version is always set to inactive when modifying the approver.

Show: