SAP Knowledge Base Article - Public

2731697 - WfRequest API Query on workflow request in PENDING status

Symptom

WfRequest API is returning limited information for workflow requests with PENDING status compared to workflows in COMPLETED state for example.

Environment

  • SAP SuccessFactors HCM Suite
    • OData API / Integration Center

Reproducing the Issue

1. Query WfRequest via Integration Center or any REST Client such as Postman

2. In the response payload, the data is blank / not returning if the workflow is in Pending Status

Cause

The OData API "/odata/v2/WfRequest" does not have the workflow pending data(attribute) level information. It only returns the workflow status, current step information.

Resolution

Querying workflow request in pending state explicitly will return limited information on the WF.

Example query: https://<hostname>/odata/v2/WfRequest?$format=JSON&$filter=status eq 'PENDING'

The response will contain "wfRequestId" (business key), "lastModifiedBy" and "status" fields.

For MDF entities, the wfRequestNav navigation property can be used with recordStatus parameter to retrieve workflow information for pending data.

See Also

Keywords

Workflow, Integration Center, OData API, WfRequest, pending , KBA , LOD-SF-INT-ODATA , OData API Framework , LOD-SF-INT-INC , Integration Center , Problem

Product

SAP SuccessFactors HCM Core all versions