SAP Knowledge Base Article - Public

2800775 - How to fetch Pending for approval records of BenefitEmployeeClaim ODATA Entity

Symptom

How to fetch Pending for approval records of BenefitEmployeeClaim ODATA Entity.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Environment

  • SAP SuccessFactors HCM suite
    • OData

Resolution

  1. Kindly use the below filter in your query to fetch only the records of BenefitEmployeeClaim which are pending for approval

$expand=wfRequestNav&recordStatus=pending

   2. For example run the below query

GET https://apisalesdemo4.successfactors.com/odata/v2/BenefitEmployeeClaim?$expand=wfRequestNav&$format=json&recordStatus=pending

   3. Response received will have pending for approval records of BenefitEmployeeClaim:

Response.PNG

Also, if you want to fetch the records of BenefitEmployeeClaim which are pending for approval for a specific Employee you can trigger the below API query:

https://<API-Server>/odata/v2/
BenefitEmployeeClaim('XXXXXX')?$format=JSON&recordStatus=pending

In the above API query in the place of "XXXXXX" you need to pass the "id" of the BenefitEmployeeClaim of the specific employee.

Triggering above API query will return the details of the specific employee having pending for approval records of BenefitEmployeeClaim entity.

See Also

BenefitEmployeeClaim | SAP Help Portal

recordStatus | SAP Help Portal

Keywords

recordStatus=pending, pending records, BenefitEmployeeClaim, ODATA, Specific Employee, pending , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT , Integrations , How To

Product

SAP SuccessFactors HCM Suite all versions