Module sap.successfactors.ecdismissalprotection
ballerinax/sap.successfactors.ecdismissalprotection Ballerina library
Overview
SAP SuccessFactors Employee Central is a comprehensive human capital management solution that helps organizations manage their workforce effectively. It provides a unified platform for HR processes including employee data management, organizational structures, and employment lifecycle management.
The ballerinax/sap.successfactors.ecdismissalprotection package provides APIs that enable seamless integration with the SAP SuccessFactors Dismissal Protection API v1.0. The service allows to manage dismissal protection information for employees, ensuring compliance with labor laws and regulations.
Key Features
- Manage dismissal protection records and legal compliance
- Track termination documentation and regulatory requirements
- Query protection details and compliance status
- Support for basic and OAuth 2.0 authentication
Setup guide
-
Sign in to your SAP SuccessFactors instance as an administrator.
-
Navigate to Admin Center > Manage OAuth2 Client Applications and register a new OAuth2 client application for your integration.

-
Note down the API Key (client ID) and configure the appropriate scopes for the Employee Central APIs you intend to use.
-
Locate your Company ID and the API server hostname for your SuccessFactors region. You can find the list of API servers in the SAP SuccessFactors API documentation.
-
Use Basic Authentication (username + password) or OAuth 2.0 SAML Bearer to authenticate with the API.
Quickstart
To use the sap.successfactors.ecdismissalprotection connector in your Ballerina application, modify the .bal file as follows:
Step 1: Import the module
Import the sap.successfactors.ecdismissalprotection module.
import ballerinax/sap.successfactors.ecdismissalprotection as ecdismiss;
Step 2: Instantiate a new connector
Use the hostname and credentials to initiate a client.
configurable string hostname = ?; configurable string username = ?; configurable string password = ?; ecdismiss:Client ecdismissClient = check new ( { auth: { username, password } }, hostname );
Step 3: Invoke the connector operation
Now, utilize the available connector operations.
ecdismiss:EmployeeDismissalProtectionWrapper dismissalProtection = check ecdismissClient->getEmployeeDismissalProtection();
Step 4: Run the Ballerina application
bal run
Examples
The SAP SuccessFactors Employee Central Ballerina connectors provide practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like syncing employee data and sending notifications.
-
Google Sheets to SuccessFactors - Read employee records from a Google Sheets roster and create Personal Information records in SuccessFactors.
-
SuccessFactors to Slack - Poll SuccessFactors for newly onboarded employees and send welcome notifications to a Slack channel.