Workflow::activateFromWorkflowConfigurationId Method [AX 2012]

Activates a workflow based on a workflow configuration ID.

server public static WorkflowCorrelationId activateFromWorkflowConfigurationId(
    WorkflowConfigurationId _workflowConfigurationId, 
    RecId _recId, 
    WorkflowComment _initialNote, 
    NoYes _activatingFromWeb, 
   [WorkflowUser _submittingUser])

Run On

Server

Parameters

_workflowConfigurationId
Type: WorkflowConfigurationId Extended Data Type
The ID of the workflow configuration to enable.
_recId
Type: RecId Extended Data Type
The record ID of the workflow enabled record
_initialNote
Type: WorkflowComment Extended Data Type
The comments that should be associated with the enabled workflow.
_activatingFromWeb
Type: NoYes Enumeration
A flag that signifies the origin of the submission.
_submittingUser
Type: WorkflowUser Extended Data Type
The user submitting the document to workflow; optional.

Return Value

Type: WorkflowCorrelationId Extended Data Type
The ID of the workflow instance that will be used for correlation.
Show: