Search code examples
c#odatasap-successfactors

Odata - New Hire Detection


I need to find New Hires that have been entered into Success Factors and will be starting in the future via OData.

The following C# based query is what I'm using:

DateTime tomorrow = DateTime.UtcNow.AddDays(1);

var newHires = EmpEmployment
.Expand("userNav")
.Where (e => e.startDate >= tomorrow);

The above query returns staff who have a startDate in the future however the User expansion does not find any matching entries and is null.

The issue appears to be that the User table is only populated with entries for the person when the start date is reached. This is a problem because I want to create them in other systems in advance.

Does anyone know if this is normal or thoughts around how I can obtain details like firstname, lastname of future employees who have been entered in the system?


Solution

  • You are trying to use EmpEmployment entity from Employee Central. The required date could be retrieved from RCM (Recruitment Management).

    There is no clear answer to your question because customizing depends on the project; you should ask functional consultant responsible for EC what the way to get New hires startDate.