cancel
Showing results for 
Search instead for 
Did you mean: 

Successfactors Employee Central: Query data from multiple entities / SFAPI objects

We have following org structure in Successfactors Employee Central (EC).

Company
-- Business Unit

I want to read company details and all the business units under that company. To achieve this I need to have company code in business unit entity to find co-relation. However, FO_businessUnit SFAPI does not have company code details. Can anyone tell me how I can achieve this requirement using SFAPI?

Regards,

Netrey

Accepted Solutions (1)

Accepted Solutions (1)

Sriprasadsbhat
Active Contributor
0 Kudos

Hello Netrey,

Agree with Alejandro ,association has to be built between two entities ( company and business unit entities ) in order to pull the information.

Although its how org structure looks functionally but from technical or API standpoint correlation between these 2 entities is only country field which is not helpful in your case ( From standard view point).

As per my understanding company and business units are now moved to MDF ( from old XML based modelling ) so once you build the association between business unit and company you have to go with OData Entity to extract both at a time using $expand in your query.

Hope this helps.

Regards,

Sriprasad Shivaram Bhat

Answers (2)

Answers (2)

0 Kudos

Hello Alejandro Isaias and Sriprasad Shivaram Bhat,

Thank you very much for your replies. I did exactly the same thing you suggested. Earlier I was trying to fetch details from SFAPI that seemed to be not possible in my case. So, we found association that has been setup between Company and Business Unit (also there are other objects in the hierarchy that we needed to connect like Division, Department and so on). Using OData API we are now fetching data from multiple objects.

Thanks,
Netrey

Alejandro2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Netrey,

Do you have created the association between Company and Business Unit in the Business Unit object definition?

Regards!