Org Chart

Marcus Fly
Tera Expert

Has anyone used the LDAP data in the system to have it generate a company ORG chart? I would like to see this as it would be a dynamic representation of the data.

1 ACCEPTED SOLUTION

Here's how I was able to hack this out on our instance:

https://INSTANCE.service-now.com/generic_hierarchy.do?sysparm_stack=yes&sysparm_attributes=layout=su...

layout= can be "sugiyama" for horizontal, or "sugiyamav" for vertical.
baseid= is the sys_id of the topmost parent record
record= is the table you want to generate the map from
title= is the fieldname to display on each node
parent= field to use for the relationship

The processor=OrgChartProcessor value was blowing up on our instance, with a 404 returned from the XML post. Removing that value, or setting it to processor=GenericHierarchyProcessor seemed to work just fine.

I suppose you could write your own processor (under System Definition) to return the appropriate GraphML for some arbitrary relationship diagram, but the link above has worked well for us.


View solution in original post

13 REPLIES 13

Marcus Fly
Tera Expert

anyone?


marcguy
ServiceNow Employee
ServiceNow Employee

Hi, there is a UI page out of the box called generic_hierarchy, that you might want to take a look at, you can call it in a module or URL Link and it will organise your users by dept, manager, etc as long as the data is good.

example URL

https://instancename.service-now.com/generic_hierarchy.do?sysparm_stack=no&sysparm_attributes=spacing_x=80,spacing_y=20,company=xxxxxxxxxxxxxxxxx,levels=2,nocontext,processor=OrgChartProcessor


Is there any documentation on the generic_hierarchy ? Ie. how to customize it, etc?


It doesn't look like we have any documentation about the generic_hierarchy UI page in specific. We do have documentation of the extensions to Jelly syntax used in scripting UI pages:

http://wiki.service-now.com/index.php?title=Extensions_to_Jelly_Syntax

As well as the documentation for working with UI Pages:

http://wiki.service-now.com/index.php?title=UI_Pages