Skip to main content
yasodakrishnaa9946
November 1, 2023
Question

Org Chart

  • November 1, 2023
  • 3 replies
  • 0 views

I  have a requirement for an organizational chart. 
I have an employee-specific table in the database containing the reporting manager column and role.
I tried the code but it doesn't expand to down-level resources. I require a dynamic chart to add employees and roles.

a!localVariables(
local!user: loggedInUser(),
a!orgChartField(
value: local!user,
saveInto: local!user,
showAllAncestors: true,
showTotalCounts:true
)
)

    3 replies

    stefanhelzle0001
    Brainy
    November 1, 2023

    The orgChartField, as per the documentation, does not work with your table, but with the supervisor attribute of user accounts.

    But you can just use the tree browser component: docs.appian.com/.../Tree_Browser_Component.html

    November 3, 2023

    For your account, the supervisor is not configured in the user profile. It's configured like below

    It's a user picker field. Once you have added the picker field then it will show in the Org chart. I have added myself as a supervisor for two users and now it's showing in org chart

    November 3, 2023

    Hi, 

    We had this requirement way back, for the Non-Appian user details (Employee directory structure maintained in a table) used https://community.appian.com/b/appmarket/posts/organization-chart-component

    Hope it may help you.