Symptom
Via OData it seems not possible to get the value for the Application Status Set ID.
Trying any attempts we always get the Application status ID
Environment
SAP SuccessFactors Recruiting Management
Reproducing the Issue
Via OData query:
- send a REQUEST like this:
.../odata/v2/JobApplication(###)?$expand=jobAppStatus,jobAppStatus/jobAppStatusLabel&$format=json - in ODATA Response:
appStatusSetID returns the expected value for appStatusID
Via Integration Centre is possible to reproduce something similar, example below:
Create a report including:
- Job Application Status Item Id (appStatusSetItemId) from JobApplication
- Application Status Set Id (appStatusSetId) from JobApplicationStatus
As result both columns contain the same value: the Application Status ID and not the Application Status Set ID
Cause
This reflect the current ODATA design:
both appStatusSetId from JobAppStatus and appStatusId from JobAppStatusLabel entity are pointing to appStatusSetItemId and this stores the Application Status IDs.
Resolution
It is not possible to get the ID of the Application Status Set, you can only get ID of the Application Status.
Note: The data shown for 'jobAppStatus/appStatusId' (appStatusId from JobApplicationStatus entity) is inaccurate. Use the business key 'jobAppStatus/appStatusSetId'.
Currently we do not have a plan to correct the data field since this requires extensive research about the usage of the entity by the various other customers.
To obtain Status ID values: Below are the two options:
jobAppStatus/appStatusSetId
jobAppStatusLabel/appStatusId
Keywords
Application Status Set ID, Application status ID, Integration center, appStatusSetItemId, appStatusSetId, JobApplicationStatus, jobAppStatus, jobAppStatusLabel, appStatusId, OData, API, Job Application Status Item Id , KBA , LOD-SF-RCM-API , Webservices & APIs , Problem
SAP Knowledge Base Article - Public