Share via


HierarchyTreeTable.deleteActivityHierarchy Method

Deletes the HierarchyTreeTable and its child records.

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 Set deleteActivityHierarchy(
            HierarchyIdBase _hierarchyId, 
            ElementNumber _elementNumber, 
           [boolean _validateOnly, 
            boolean _silentValidation])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void deleteActivityHierarchy(HierarchyIdBase _hierarchyId, ElementNumber _elementNumber)

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void deleteActivityHierarchy(HierarchyIdBase _hierarchyId, ElementNumber _elementNumber)

  Microsoft Dynamics AX 2012 (FPK)
          public void deleteActivityHierarchy(HierarchyIdBase _hierarchyId, ElementNumber _elementNumber)

  Microsoft Dynamics AX 2012 (SYS)
          public void deleteActivityHierarchy(HierarchyIdBase _hierarchyId, ElementNumber _elementNumber)

Run On

Called

Parameters

  • _validateOnly
    Type: boolean
    When set to true, will not actually delete, rather, will just perform validation.
  • _silentValidation
    Type: boolean
    When set to true, won't throw an error in case the validation determines the data to be invalid.

Return Value

Type: Set Class
A set of activities which were impacted by the hierarchy deletion.

See Also

Reference

HierarchyTreeTable Table