Plan::createNewVersion Method
Creates a new version of a plan
Syntax
server public static Plan createNewVersion(
RefRecId _planReference,
RefRecId _planToCopyFrom,
PlanValidFromDateTime _validFrom,
PlanValidToDateTime _validTo,
NoYes _duplicateKanbanRules)
Run On
Server
Parameters
- _planReference
Type: RefRecId Extended Data Type
The record ID of the production flow version.
- _planToCopyFrom
Type: RefRecId Extended Data Type
The record ID of the plan from which to copy.
- _validFrom
Type: PlanValidFromDateTime Extended Data Type
The date from which the production flow version is valid.
- _validTo
Type: PlanValidToDateTime Extended Data Type
The date to which the production flow version is valid.
- _duplicateKanbanRules
Type: NoYes Enumeration
A Boolean value that indicates whether the associated kanban rules should be copied to the new version.
Return Value
Type: Plan Table
The created record in the Plan table.