Scope and Data Type of an OrgChart Object
Chart objects are declared using the Chart data type. For example,
Local OrgChart &MyOrgChart;A chart object can be instantiated only from PeopleCode.
You can use this object only in PeopleCode programs that are associated with an online process, not in an Application Engine program, a message notification, a Component Interface, and so on.