Trying to query the Job Requisition entity with a JobReqId in the format defined in handbook but getting an error when trying to do so.
<?xml version="1.0" encoding="UTF-8"?>
<message lang="en-US">Failed to retrieve result with given criteria.</message>
However when executing query with 'select' parameter, the results are returned as expected which proves the data is present for this JobReq Id-
The issue is because the job requisition templates defined for this instance do not have the defaultLanguage set.
In order to resolve the issue you need to follow below steps-
- Update the job requisition templates with the defaultLanguage.
- Refresh the Odata API metadata cache after updating the job requisition template.
- Once done, again execute the query and verify the results.
- Issue should be resolved.
Issues with Job Requisition Entity Error message: "Failed to retrieve result with given criteria." with Job Requisition query without 'select' parameter. , KBA , LOD-SF-INT-API , API & Adhoc API Framework , LOD-SF-INT , Integrations , Problem