Update employee(s) records from different entities using ODATA $batch API in SAP SuccessFactors

Update employee(s) records from different entities using ODATA $batch API in SAP SuccessFactors

This post was originally published on this site


INTRODUCTION

In this blog post, I want to share how to combine multiple requests in a single OData $batch request to upsert different entity records for single/multiple employees in SAP SuccessFactors using Postman, while supporting the transactional(atomic) behavior that ensures the records are fully updated or none in case of failure, that is partial changes are not done.

OData APIs

The Open Data Protocol (OData) is a standardized protocol for creating and consuming data APIs. SAP SuccessFactors use ODATA(2.0) APIs for integration and data replication. This API provides methods for CRUD operations (Create, Read, Update and Delete).

SAP SuccessFactors Documentation on OData APIs can be found in these three sources below:

SAP SuccessFactors HXM Suite OData API: Reference Guide SAP SuccessFactors Employee Central OData API: Reference Guide SAP SuccessFactors HXM Suite OData API: Developer Guide

Information about ODATA v2.0 can be found here: ODATA v2.0

Upsert in OData.

SAP SuccessFactors OData service supports a custom OData function called UPSERT. The UPSERT operation takes care of creating or updating the records so that you do not have to do this explicitly. The UPSERT operation also allows the operation on single or multiple records at the same time. The examples of Upsert

Read Complete Article

The post Update employee(s) records from different entities using ODATA $batch API in SAP SuccessFactors appeared first on HR Tech Feed.