Dynamic query for TOP_SUPERVISOR_PERSON_ID
Asking just in case someone has done this previously.
I manage approvals a complex setup with numerous government institutions in one Oracle EBS instance. Each institution has its Top Supervisor Person, so that in the setup there are close to 150 users that are at the top of their HR hierarchy.
This makes populating the TOP_SUPERVISOR_PERSON_ID attribute with a static Person ID impossible (unless I let everything escalate to the Prime Minister… not a popular solution!).
Anybody tried using a dynamic query to define the Top Supervisor per WF?
A query that would pick up the ORG_ID from the WF and use that to find the Top Supervisor of that ORG?