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 "Service Calls" within SAP B1. Specifically, the Update operation allows users to modify an existing service call by specifying its unique identifier (DocEntry) and providing the updated data in JSON format.

Common scenarios for this node include automating updates to service calls based on external triggers or workflows, such as changing the status of a service call, updating customer information, or modifying service details without manual intervention in SAP B1.

For example, a support ticket system could automatically update the corresponding SAP B1 service call when a ticket is resolved, ensuring synchronization between systems.

Properties

Name Meaning
DocEntry The unique numeric identifier of the service call to update.
JSON Body The JSON content representing the fields and values to update in the service call.

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. For the Update operation, the json output contains the response from the SAP B1 Service Layer after attempting to update the specified service call. This typically includes the updated service call data or confirmation of the update.

If an error occurs during the update, the output JSON will contain an error field with the error message describing what went wrong.

No binary data is output by this node.

Dependencies

  • Requires connection credentials to the SAP B1 Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The node uses HTTP methods (PATCH for update) to interact with the SAP B1 REST endpoints.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint, with TLS certificate verification disabled (rejectUnauthorized: false).

Troubleshooting

  • Authentication errors: If login fails, verify that the provided username, password, company database, and base URL are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: If the specified DocEntry does not exist, the API will return an error. Confirm the identifier corresponds to an existing service call.
  • Malformed JSON Body: Ensure the JSON body is correctly formatted and contains valid fields accepted by the SAP B1 Service Layer for service calls.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP B1 server is unreachable or has invalid certificates.
  • API errors: The node surfaces API error messages in the output under the error key. Review these messages to understand issues like permission problems or invalid operations.

Links and References

Discussion