Actions29
- Activitie Actions
- Business Partner Actions
- Order Actions
- Quotation Actions
- Sales Opportunity Actions
Overview
This node integrates with the SAP B1 Service Layer 3 CRM API to perform various operations on CRM resources, specifically here focusing on updating an existing "Activitie" (Activity) record. It allows users to update activity data in SAP Business One by specifying the unique identifier of the activity and providing the new data in JSON format.
Common scenarios include:
- Modifying details of a scheduled activity such as changing its description, status, or related business partner.
- Updating custom fields or additional information related to activities tracked in SAP B1.
- Automating updates to activities based on external triggers or workflows.
Practical example:
- A workflow that updates the status of an activity to "Completed" after a certain event occurs, by sending a PATCH request with the updated JSON body containing the new status.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the activity to update. Required to specify which record to patch. |
| JSON Body | The JSON content representing the fields and values to update on the activity. This is the body sent in the PATCH request. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:
json: The response from the SAP B1 Service Layer API after attempting the update operation. This typically includes the updated activity data or confirmation of success.- In case of errors, the
jsonfield contains anerrorproperty with the error message describing what went wrong.
No binary data is output by this node.
Dependencies
- Requires connection credentials for 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 POST request to obtain session cookies used for subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
- No additional external libraries beyond standard HTTP request helpers are required.
Troubleshooting
- Authentication failures: If login fails, verify the username, password, company database, and base URL are correct. Check network connectivity to the SAP B1 server.
- Invalid DocEntry / Key: Errors occur if the specified activity key does not exist. Confirm the key is valid and corresponds to an existing activity.
- Malformed JSON Body: Ensure the JSON body is correctly formatted and contains only valid fields accepted by the SAP B1 API for activities.
- Permission issues: The user account must have sufficient permissions to update activities in SAP B1.
- SSL certificate errors: The node disables strict SSL verification (
rejectUnauthorized: false), but if your environment requires strict validation, adjust accordingly. - Common error messages returned from the API will be included in the output under the
errorfield for easier debugging.
Links and References
- SAP Business One Service Layer API Documentation
- SAP Business One Activities Entity Reference (example link; consult your version's docs)
- n8n HTTP Request Node documentation for understanding request options and error handling: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/