Workflow::activateFromWorkflowType Method [AX 2012]
Activates a workflow from a specified workflow template name.
server public static WorkflowCorrelationId activateFromWorkflowType(
WorkflowTypeName _workflowTemplateName,
RecId _recId,
WorkflowComment _initialNote,
NoYes _activatingFromWeb,
[WorkflowUser _submittingUser])
Run On
ServerParameters
- _workflowTemplateName
- Type: WorkflowTypeName Extended Data Type
The workflow template name 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 are associated with the enabled workflow.
- _activatingFromWeb
- Type: NoYes Enumeration
A flag that represents the origin of the submission.
- _submittingUser
- Type: WorkflowUser Extended Data Type
The user who submits the document to the workflow; optional.
Return Value
Type: WorkflowCorrelationId Extended Data TypeThe ID of the workflow instance that will be used for correlation.
Show: