SAP Knowledge Base Article - Public

3331522 - How to get different TodoEntryV2 language labels via SF Odata API

Symptom

How to get different TodoEntryV2 language labels via SF 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

  • TodoEntryV2 Entity

Resolution

If you want to get an English label under the TodoEntryV2 entity:

1. Please change the User login language to en_US via SF Odata API:

Post: upsert?$format=json

Payload:
  {
                "__metadata": {
                    "uri": "User('tadmin')",
                    "type": "SFOData.User"
                },
                "userId": "tadmin",
                "defaultLocale": "en_US"
  }

Response:
{
    "d": [
        {
            "key": "tadmin",
            "status": "OK",
            "editStatus": "UPDATED",
            "message": null,
            "index": 0,
            "httpCode": 204,
            "inlineResults": null
        }
    ]
}

2. Get TodoEntryV2 to check the label response:

     "subjectUserId": "103108",
     "changedData": null,
     "eventReason": "Personal Information change",
     "actionType": null,
     "isAssigned": false,

If you want to get a Chinese label under the TodoEntryV2 entity:

1. Please change the User login language to zh_CN via SF Odata API:

Post: upsert?$format=json

Payload:
  {
                "__metadata": {
                    "uri": "User('tadmin')",
                    "type": "SFOData.User"
                },
                "userId": "tadmin",
                "defaultLocale": "zh_CN"
  }

Response:
{
    "d": [
        {
            "key": "tadmin",
            "status": "OK",
            "editStatus": "UPDATED",
            "message": null,
            "index": 0,
            "httpCode": 204,
            "inlineResults": null
        }
    ]
}

2. Get TodoEntryV2 to check the label response:

   "subjectUserId": "103108",
   "changedData": null,
   "eventReason": "个人信息 更改",
   "actionType": null,
   "isAssigned": false,

Please note that we cannot get different language labels via one SF Odata API request.

Keywords

English label, Chinese label, different languages, OData API, TodoEntryV2, labels , KBA , LOD-SF-INT-EC , Employee Central SFAPI & OData Entities , How To

Product

SAP SuccessFactors HXM Core 2211