2187793 - Odata response for EC APIs doesnt return end date

SAP Knowledge Base Article - Public

2187793 - Odata response for EC APIs doesnt return end date

Symptom

"End Date" attribute doesn't return data in Odata response for Employee Central API entities (example - EmpJob Odata Entity)


Environment

SuccessFactors Syetem

Reproducing the Issue

Example

  Request XML 

https://api4.successfactors.com/odata/v2/EmpJob?$format=json&$select=endDate,event,lastModifiedBy,jobCode&$filter=employmentNav/personIdExternal in 'admin'

Response XML 

results: [1] 0: { __metadata: { uri: "https://api4.successfactors.com:443/odata/v2/EmpJob(seqNumber=1L,startDate=datetime'2015-06-15T00:00:00',userId='admin')" type: "SFOData.EmpJob" }- event: "1234" lastModifiedBy: "ABCD" jobCode: "3000123" }-

Observation
All the data as per the request url is returned except the field "EndDate".

Resolution

  • Please add the below permissions and try again.

Navigation
Admin tools - Manage Security - Manage Permission Roles - Select the permission role - Employee Central API
Enable the below checks as shown in the screenshot.

permissions.png

  • Enabling this option grants the user admin access to other Non-Foundation EC entities for query. For example, person and employment entities.

Verification - 

We will run the same request XML again after enabling the above permissions.

verify.jpg

Observation

We can now see that the endDate field values are returned.

Keywords

endDate not returned, end date issue , KBA , LOD-SF-INT-API , SF API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM Core all versions