SAP B1 Login
AI-generatedSummary
Logs in to the SAP Business One Service Layer once using the stored credentials and appends the session details to every incoming item for downstream SAP B1 nodes to use.
Inputs
- Credentials (sapB1ServiceLayerApi) (required) — Required credential supplying serverUrl, userName, password, companyDB and the ignoreSsl flag. The operation has no other UI parameters.
- Input items — Incoming items are passed through; their JSON is kept and the session fields are merged in.
Output shape
One output item per input item, each containing the original JSON plus b1Session, b1RouteId, b1ServerUrl and b1IgnoreSsl.
It sends a single POST to /b1s/v2/Login, regardless of item count. b1Session is read from the B1SESSION cookie, falling back to SessionId in the response body. b1RouteId is the ROUTEID cookie, or an empty string if absent. It throws an error if no session is returned. This node does not log out, so the server-side session stays open until it times out or another node logs out. The output contains a live session token, so treat it as sensitive.
Examples
Example 1: Authenticate once before several SAP B1 queries in the same workflow.
Add SAP B1 Login after a trigger, select the SAP B1 Service Layer credential, and connect it to downstream SAP B1 nodes that read b1Session and related fields.
Example 2: Attach a session to a batch of records for processing.
Feed multiple items into the node; each is returned with the same session fields added.