Business Objects Recursive Hierarchy
A hierarchy is a set of data members arranged in levels or parent child relationships for example a geography hierarchy might contain the country state and city levels hierarchies produce hierarchical columns in the result set produced by the query.
Business objects recursive hierarchy. How a bridge can aid in the navigation of a recursive hierarchy. You can expand the items in the hierarchy to explore its data. Employees report to other employees parts are made of other parts and so forth.
The basic syntax structure for a cte is shown below. Without the hierarchies the report was displayed as below. Unfortunately at the time of writing this article there has not been a recursive query operator defined for linq.
The roles recorded in sfdc as a recursive hierarchy are tying to many objects in sfdc such as opportunities through their owner and are therefore very useful to roll up say bookings or pipeline to any organizational level which we. Here the user gets the entire list of dates. In the following examples you will learn how to harness the power of a recursive cte query by fulfilling a common business requirement.
The business scenario i use to illustrate is a sfdc role hierarchy accessed through setup manage users roles. Hierarchy in business objects with expanded hierarchy logic author. With mycte as select empid firstname lastname managerid from employee where managerid is null select from mycte.
Hierarchies and drilling are inter related wherein hierarchies should be defined in universe to do drilling in the report. Drilling hierarchy determines the drill path from high level summary data to low level detailed data. In scenarios like these dynamic data modeling structures like recursive hierarchies.
The plan id and dates are individually mapped to the objects nad each of tehm pick they their list of values from the datbase. In this post i ll tackle a third and final use. Recursive relationships in the real world recursive relationships are common.