SAP Knowledge Base Article - Public

2622432 - How to create an Offer approval via OData API - Recruiting Management

Symptom

How to create / insert the Offer approval?

Environment

SAP SuccessFactors Recruiting Management

Resolution

Find below, the sample payload to use to create an offer approval.

NOTE: Below link is an example for salesdemo instance hosted in DC4, you will have to change the URL to reflect your instance:  "api4.successfactors.com" for performance manager in DC4 , or "api10preview.sapsf.com" for preview in DC10.
NOTE: Loging format is <USERNAME>@<Company ID (case Sensitive)> + User's Password.

https://apisalesdemo4.successfactors.com:443/odata/v2/JobOffer?$format=json

{"__metadata":
{"uri":"JobOffer","type":"SFOData.JobOffer"},
"applicationId":"*****",
"approvers":[
{"__metadata":{"uri":"JobOfferApprover","type":"SFOData.JobOfferApprover"}
,"username":"****"

}
],
"templateId":"*****"

}

In this case, the user details you are using for ODATA is the Originator for the Approval. There is also a validation to check if the user has the permission to create the offer approver.

If the access is not there, you will not be able to create the offer.

Keywords

job, offers, creating, inserting, OData, api, integration , KBA , LOD-SF-RCM , Recruiting Management , LOD-SF-RCM-INT , Integration Center & Intelligent Services , How To

Product

SAP SuccessFactors Recruiting all versions