SAP Knowledge Base Article - Preview

2763318 - When querying any team field for multiple job requisition the field is not expanded - Job Requisition

Symptom

This article explains the behavior of the query return when running it against multiple job requisitions and expanding any team field. There is different behavior for the return when querying single job requisition and multiples.

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 ground is added to the team field the returns are empty.

For example, when running the following query, the system will return the user information:

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

Here is the return:

{
"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"
}}}}}}

When running similar query to get more than one job requisition, the team field is empty:

https://api12preview.sapsf.eu/odata/v2/JobRequisition?$format=json&$expand=secondRecruiterTeam&$select=jobReqId,secondRecruiterTeam&$filter=jobReqId in 101,102

{
"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": []
}
}
]
}
}


Read more...

Environment

SuccessFactors Recruiting Management (RCM) - All versions

Product

SAP SuccessFactors HCM Core 1811 ; SAP SuccessFactors Recruiting all versions

Keywords

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

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.