SAP Service Layer Login
This minimal utility workflow connects to the SAP Business One Service Layer API to verify login credentials and return the session ID. It's ideal for testing access or using as a sub-workflow to retrieve the B1SESSION token for other operations. **HOW IT WORKS:** **1. Trigger Manually** The workflow is initiated using a Manual Trigger. Ideal for testing or debugging credentials before automation. **2. Set SAP Login Data** The Set Login Data node defines four key input variables: - sap_url: Base URL of the SAP B1 Service Layer (e.g., https://sap-server:50000/b1s/v1/) - sap_username: SAP B1 username - sap_password: SAP B1 password - sap_companydb: SAP B1 Company DB name **3. Connect to SAP** An HTTP Request node performs a POST to the Login endpoint. The body is structured as: ```json { "UserName": "your_sap_username", "Password": "your_sap_password", "CompanyDB": "your_sap_companydb" } ``` If successful, the response contains a SessionId which is essential for authenticated requests. **4. Return Session or Error** The response is branched: On success – the sessionID is extracted and returned. On failure – the error message and status code are stored separately. **SETUP STEPS:** **1. Create SAP Service Layer Credentials** Although this workflow uses manual inputs (via Set), it's best to define your connection details as environment variables for reuse: - SAP_URL=https://your-sap-host:50000/b1s/v1/ - SAP_USER=your_sapuser - SAP_PASSWORD=your_password - SAP_COMPANY_DB=your_companyDB Alternatively, update the Set Login Data node directly with your values. **2. Run the Workflow** Click Execute Workflow in n8n. Watch the response from SAP: - If successful: sessionID will be available in the Success node. - If failed: statusCode and errorMessage will be available in the Failed node. **USE CASES:** - Reusable Login Module Export this as a reusable sub-workflow for other SAP-integrated flows. - Credential Testing Tool Validate new environments, test credentials before deployment.
- Platform
- n8n
- Category
- Business Operations & ERPs
- Price
- $4.99
- Creator
- Raquel Giugliano
- set
- httpRequest
- manualTrigger
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Business Operations & ERPs workflows
- Automate Job Applications and Track Status with LinkedIn, Indeed, and Google Sheets$14.99
- Automated Stock Price Monitoring and Alerts for Indian & US Markets$9.99
- Build Custom Workflows Automatically with GPT-4o, RAG, and Web Search$24.99
- AI Chat Agent Receptionist for Clinics$150
- Automatically Archive Zoom Recordings to Google Drive and Log in Airtable$4.99
- Automate Call Scheduling with Voice AI Receptionist Using Twilio, Google Calendar & Airtable$24.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.