SAP Knowledge Base Article - Public

2196384 - How to Delete Job Requisitions via API and what are the required API permissions to do so? - Recruiting Management

Symptom

  • How to delete JobRequisitions via SFAPI?
  • What are the permissions needed to delete them?

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

SAP SuccessFactors Recruiting Management

Resolution

We may delete jobRequisitions using the below request xml:

In this example, We have used the SFAPI entity "JobRequisition$1" and the jobRequisition id "123"

Request XML

<soapenv:Body>
    <urn:delete>
      <urn:type>JobRequisition$1</urn:type>
      <urn:sfobject>
        <urn:id>123</urn:id>
        <urn:type>JobRequisition$1</urn:type>
      </urn:sfobject>
    </urn:delete>
  </soapenv:Body>

Response XML

 <result>
        <jobStatus>OK</jobStatus>
        <message />
        <objectEditResult>
          <id>123</id>
          <errorStatus>OK</errorStatus>
          <editStatus>DELETED</editStatus>
          <index>0</index>
          <message>Successfully deleted</message>
        </objectEditResult>
      </result>

 

To do this, Required permissions are to be enabled from Admin Tools in SF Company instance -

Navigation

  1. Go to Admin Tools
  2. Manage permission Roles
  3. Select the role to which the user is assigned to
  4. Click on "Permissions" box under Recruiting Permissions
  5. Put a check mark on Delete Job Requisitions

del&#x20;job&#x20;req.jpg

Keywords

SFAPI, Delete, Operation, Req, ID, Requisition, JobRequisitions, Permission. , KBA , LOD-SF-RCM-API , Webservices & APIs , How To

Product

SAP SuccessFactors HCM Core all versions