ISOrgMember.Parent

Description

The parent organisation node for the organisation node.

Syntax

object.Parent

Part Attribute Type Description
object Required
The object always implements the ISOrgMember interface
Restriction: This property is readonly.

Return Value

ISOrgMember

Example

Display the name of the parent organisation node for the organisation node.

Dim aFilter
Dim aOrgMember
Dim aOrgMembers
Dim aParent
Dim aMessage

Set aFilter = Profile.CreateOrgMembersFilter
set aOrgMembers = Profile.LoadOrgMembers(aFilter)

aMessage = "Org Nodes Count = " & aOrgMembers.Count
for each aOrgMember in aOrgMembers
  aMessage = aMessage & vbNewLine & "-------------------------" & vbNewLine & _ 
    "ORGANISATION NODE:  " & aOrgMember.Name & vbNewLine 
    
  set aParent = aOrgMember.Parent
  if not aParent is nothing then
    aMessage = aMessage & vbNewLine & "Parent:  " & aParent.Name    
  end if       
next      

Profile.MsgBox(aMessage)
Note:

In Profile Client v8 on User Interface Parent can be found in Organisation > People & Places > Organisational Structure.

Version information

Added in v7.8.0