Share via


PCComponentConstraint.duplicate Method

Duplicates the attribute and the reference.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          public PCComponentConstraint duplicate(
            RefRecId _duplicateComponent, 
            Map _duplicatedComponentsMap, 
            Map _duplicatedAttributesMap)

  Microsoft Dynamics AX 2012 R2 (SYS)
          public PCComponentConstraint duplicate(
            RefRecId _duplicateComponent, 
            Map _duplicatedComponentsMap, 
            Map _duplicatedAttributesMap)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public PCComponentConstraint duplicate(RefRecId _duplicateComponent, Map _originalToDuplicateTableConstraints)

  Microsoft Dynamics AX 2012 (FPK)
          public PCComponentConstraint duplicate(RefRecId _duplicateComponent, Map _originalToDuplicateTableConstraints)

  Microsoft Dynamics AX 2012 (SYS)
          public PCComponentConstraint duplicate(RefRecId _duplicateComponent, Map _originalToDuplicateTableConstraints)

Run On

Called

Parameters

  • _duplicatedComponentsMap
    Type: Map Class
    A map that contains pairs of IDs that link the original components to duplicated components.
  • _duplicatedAttributesMap
    Type: Map Class
    A map that contains pairs of IDs that link the original attributes to duplicated attributes.

Return Value

Type: PCComponentConstraint Table
The duplicated record.

Remarks

The _duplicatedAttributesMap parameter has been added.

See Also

Reference

PCComponentConstraint Table