deleteEmploymentHistory

Employee_EmploymentHistory.deleteEmploymentHistory(String empId, int employmentHistoryId)

This method allows you to delete the employment history of an employee.

 

Arguments
  • empId : String type mandatory argument that stores the employee id of the employee whose employee history needs to be deleted.
  • employmentHistoryId: Integer type mandatory argument that stores the employment history id of the employee.
Returns

Success output if the operation succeeded. An exception if an error is encountered

Errors
  • Unauthorized Access: If access is not allowed to the employee whose apiKey is passed In
  •  InvalidEmp: If employee id is invalid or update access is not allowed to employee / employment history record for the current user
  • InvalidEmploymentHistoryId: If the employmentHistoryId is invalid or does not map to the employee

 

Object Methods

Click on each of these links to know more about them: