How can I extract the value of LEGAL_ENTITY_IDENTIFIER from XLE_ENTITY_PROFILES table if in HR_ALL_ORGANIZATION_UNITS_F table it's null the LEGAL_ENTITY_ID field?
Hi @Gian Luca Triglia
Welcome to FAW community. This is an Question to Fusion team.
@Emily Cikovsky-Oracle Can you please move this Thread to fusion team.
Regards,
Arjun
Hi! We can't move threads to the Fusion forums on Customer Connect, FYI.
Also this is tagged for Publisher, which is a question for us, not the Fusion team - but it's not clear to me from the question whether it's about Publisher or the Fusion data source, so I'll ping the OA PMs and see what they say, then circle back.
Thanks!
HI @Emily Cikovsky-Oracle
As per my internal search its comes under Fusion HCM.
@Mallikarjuna Kuppauru-Oracle, @Emily Cikovsky-Oracle I need a SQL query for a BI report to extract the LEGAL_ENTITY_IDENTIFIER, starting from a department. I'm sorry if the question is'nt posted in the correct area of the forum, tell me where I can post it.
HI @Gian Luca Triglia
Below is the correct forum to post the question.
You can close this thread ?
SELECT xep.LEGAL_ENTITY_ID, xep.NAME AS LEGAL_ENTITY_NAME FROM XLE_ENTITY_PROFILES xep
You can start with following query
SELECT dept.ORGANIZATION_NAME AS DEPARTMENT_NAME, bu.BUSINESS_UNIT_NAME, le.NAME AS LEGAL_ENTITY_NAME, le.LEGAL_ENTITY_IDENTIFIER FROM HR_ORGANIZATION_UNITS dept JOIN PER_BUSINESS_UNIT_ORGS buo ON dept.ORGANIZATION_ID = buo.ORGANIZATION_ID JOIN FUN_BUSINESS_UNITS bu ON bu.BU_ID = buo.BU_ID JOIN HR_LEGAL_ENTITIES_F leg ON bu.LEGAL_ENTITY_ID = leg.LEGAL_ENTITY_ID JOIN HZ_LEGAL_ENTITIES le ON leg.LEGAL_ENTITY_ID = le.LEGAL_ENTITY_ID WHERE SYSDATE BETWEEN leg.EFFECTIVE_START_DATE AND leg.EFFECTIVE_END_DATE AND dept.ORGANIZATION_TYPE = 'DEPARTMENT' ORDER BY dept.ORGANIZATION_NAME;
Hope it helps