SAP Knowledge Base Article - Public

3285612 - How to get MDF workflow pending data

Symptom

Empty response occurs when requesting the MDF workflow pending data via getWorkflowPendingData entity.

Environment

SAP SuccessFactors HXM Suite

  • MDF Workflow 

Reproducing the Issue

Get: https://<API-endpoint>/odata/v2/getWorkflowPendingData?wfRequestId=1234L&$format=json

Response:


{
    "d": [
        {
            "wfRequestId": "1234",
            "workflowAttributeGroups": {
                "results": []
            }
        }
    ]
}

Cause

getWorkflowPendingData entity is not supported to get MDF workflow pending data. More details please refer to getWorkflowPendingData | SAP Help Portal 

Resolution

Please try to use TodoEntryV2 or MDF entity:

#1. https://<End-Point>/odata/v2/TodoEntryV2?$format=json&$filter=wfRequestNav/wfRequestId eq 'XXX'&$expand=wfRequestNav/wfRequestUINav

#2. https://<End-Point>/odata/v2/cust_XXXXX?$format=json&$expand=wfRequestNav/wfRequestUINav&recordStatus=pending&$filter=wfRequestNav/wfRequestId eq 'XXX' 

See Also

2604638 - SF OData API error expanding the wfRequestNav in custom MDF entity - SAP SuccessFactors HXM Suite 
3166674 - MDF Workflow Todo category related API issues

Keywords

MDF Pending workflow, Odata API MDF workflow, MDF TodoEntryV2, MDF wfRequestUINav, MDF wfRequestNav, getWorkflowPendingData , KBA , LOD-SF-INT-MDF , Metadata Framework API (MDF) , Problem

Product

SAP SuccessFactors HXM Core 2211