SAP B1 Service Layer 10 - Servicio icon

SAP B1 Service Layer 10 - Servicio

Interact with SAP B1 Service Layer 10 - Servicio

Actions19

Overview

This node interacts with the SAP Business One Service Layer API to manage various resources, including Service Contracts. Specifically, for the Service Contract - Delete operation, it deletes a service contract identified by its unique document entry number (DocEntry). This is useful in scenarios where you need to programmatically remove obsolete or incorrect service contracts from your SAP B1 system.

Practical examples include:

  • Automating cleanup of expired or canceled service contracts.
  • Integrating SAP B1 contract management into broader workflows that require contract deletion based on external triggers or conditions.

Properties

Name Meaning
DocEntry The unique numeric identifier of the service contract to delete (required).

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the delete operation, the output JSON typically contains the response from the SAP B1 Service Layer API confirming the deletion or an error message if the operation failed.

Example output structure for a successful deletion might be empty or contain status info, while errors will have:

{
  "error": "Error message describing what went wrong"
}

No binary data is produced by this node.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer endpoint.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • No additional external dependencies beyond the SAP B1 Service Layer API and valid credentials.

Troubleshooting

  • Authentication failures: If login fails, check that the username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Ensure the DocEntry provided corresponds to an existing service contract; otherwise, the API may return a not found or similar error.
  • Network issues: Verify network connectivity to the SAP B1 Service Layer endpoint and that SSL certificates are trusted or properly configured since the node disables strict SSL verification.
  • API errors: The node returns error messages from the SAP API in the output JSON under the error key. Review these messages to understand issues like permission problems or invalid requests.

Links and References

Discussion