Symptom
In this document we will go through the process of working with the Entity generateNextPersonID in the context of OData API.
In particular we will be reviewing the 405 Response error code.
Environment
-
BizX
- OData API
- Postman
Reproducing the Issue
-
Create the query as follows - for example using Postman Enviornment:
GET: https://apiXXpreview.sapsf.eu/odata/v2/generateNextPersonID -
View response error code:
{
"fault": {
"faultstring": "Received 405 Response without Allow Header",
"detail": { "errorcode": "protocol.http.Response405WithoutAllowHeader" }}
Cause
The entity generateNextPersonID is a function import, the request header should be POST.
It should not be GET.
Resolution
Create the query using the POST operation as such:
See Also
OData API: Reference Guide:
https://help.sap.com/doc/74597e67f54d4f448252bad4c2b601c9/1802/en-US/SF_HCM_OData_API_REF_en.pdf
Keywords
-
OData API
- b1802
- generateNextPersonID
- Response 405
Product
SAP SuccessFactors HCM Core 1802