SAP Knowledge Base Article - Public

3446322 - How to get the workflow approver's data from an MDF object in OData API

Symptom

You need to know how you can get the data of an MDF object's approver, such as its userId and approval date, using OData API.

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 HXM Suite
    • OData API

Resolution

You can use the wfRequestStepNav navigation in WfRequest to get this information, for example:

Query:
/odata/v2/WfRequest(1301L)/wfRequestStepNav

Response:
{
        "__metadata": {
          "uri": https://<api_url>/odata/v2/WfRequestStep(1241L),
          "type": "SFOData.WfRequestStep"
        },
        "wfRequestStepId": "1241",
        "lastModifiedDateTime": "/Date(1470822460000+0000)/",
        "role": null,
        "lastModifiedBy": "XXX",
        "createdDateTime": "/Date(1470822352000+0000)/",
        "ownerId": null,
        "createdOn": "/Date(1470822352000)/",
        "assignedTo": null,
        "lastModifiedOn": "/Date(1470822460000)/",
        "relatedTo": "TARGET",
        "actionType": "EDIT_WITH_ROUTE",
        "createdBy": "XXX",
        "stepNum": "1",
        "wfRequestId": "1301",
        "processedBy": “XXX",
        "approverType": "POSITION",
        "status": "COMPLETED",
        "dynamicRoleNav": {

        }
}

See Also

WfRequestStep | SAP Help Portal

Keywords

custom mdf, WfRequestStep, wfRequestStepNav, successfactors , KBA , LOD-SF-INT-MDF , Metadata Framework API (MDF) , How To

Product

SAP SuccessFactors HCM suite all versions