SAP Knowledge Base Article - Public

2763318 - When querying any team field for multiple job requisitions the field is not expanded - Recruiting Management

Symptom

When running a query for a single job requistion, the team field returns the users details for all the users and groups added to the respective team field. However, when running similar query to return multiple job requisitions, if a group/operators is added to the team field the returns are empty.

Environment

SAP SuccessFactors Recruiting Management

Reproducing the Issue

  1. Run one of the following example queries for a single job requisition:
    https://api4preview.sapsf.com/odata/v2/JobRequisition?$format=json&$expand=secondRecruiterTeam&$select=jobReqId,secondRecruiterTeam&$filter=jobReqId in 101
    OR
    https://api4preview.sapsf.com/odata/v2/JobRequisition(101)?$format=json&$expand=secondRecruiterTeam&$select=jobReqId,secondRecruiterTeam
  2. The results will return with the team user details:
    {

    "d": {
    "results": [
    {
    "__metadata": {
    "uri": "https://api4preview.sapsf.com/odata/v2/JobRequisition(101L)",
    "type": "SFOData.JobRequisition"
    },
    "jobReqId": "101",
    "secondRecruiterTeam": {
    "results": [
    {
    "__metadata": {
    "uri": "https://api4preview.sapsf.com/odata/v2/JobRequisitionOperator(jobReqId=101L,operatorRole='W')",
    "type": "SFOData.JobRequisitionOperator"
    },
    "jobReqId": "101",
    "operatorRole": "W",
    "lastName": "dummy",
    "phone": null,
    "fax": null,
    "email": "dummy@sap.com",
    "userName": "1234",
    "firstName": "Dummy",
    "isAdminSelected": true,
    "usersSysId": "10001111",
    "jobRequisition": {
    "__deferred": {
    "uri": "https://api4preview.sapsf.com/odata/v2/JobRequisitionOperator(jobReqId=101L,operatorRole='W')/jobRequisition"
    }}}}}}

  3. Running following exmaple query to get more than one job requisition:
    https://api12preview.sapsf.eu/odata/v2/JobRequisition?$format=json&$expand=secondRecruiterTeam&$select=jobReqId,secondRecruiterTeam&$filter=jobReqId in 101,102

  4. Results will not show the team user information:
    {
    "d": {
    "results": [
    {
    "__metadata": {
    "uri": "https://api4preview.sapsf.com/odata/v2/JobRequisition(101L)",
    "type": "SFOData.JobRequisition"
    },
    "jobReqId": "101",
    "secondRecruiterTeam": {
    "results": []
    }
    },
    {
    "__metadata": {
    "uri": "https://api4preview.sapsf.com/odata/v2/JobRequisition(102L)",
    "type": "SFOData.JobRequisition"
    },
    "jobReqId": "102",
    "secondRecruiterTeam": {
    "results": []
    }
    }
    ]
    }
    }

Cause

The query will always return empty if a group/multiple operators is added to the team field. This is a known limitation we have in the product.

Resolution

Since it is a known limitation, as a workaround the user can manually add the same users they have for some specific group to the team field, this will make the return query show the team field information for each user. Adding just a group to the team field will not return any value as displayed above.

According to the engineering team, changing this behavior will cause a high impact to API architecture and some considerable changes to the application. We do not have a target date to release such an enhancement.

If you have any business requirement that would justify such change, we always encourage our customers to raise this enhancement request to our community. Refer to the article 2090228 - How to Submit Ideas for SAP SuccessFactors Products.

Keywords

expanding, fields, preferences, filter, sourceTeam, recruitingTeam, secondRecruterTeam, originatorTeam, hiringManagerTeam, vpOfStaffingTeam, RCM-61128 , KBA , LOD-SF-RCM-API , Webservices & APIs , LOD-SF-RCM , Recruiting Management , Problem

Product

SAP SuccessFactors HCM Core 1811 ; SAP SuccessFactors Recruiting all versions