Skip to main content
yasodakrishnaa9946
New Participant
Nov 1, 2023 5:39 AM UTC
Question

Org Chart

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
    Nov 1, 2023 7:42 AM UTC

    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

    Known Participant
    Nov 3, 2023 12:19 PM UTC

    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

    Participating Frequently
    Nov 3, 2023 12:45 PM UTC

    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.