connect_database
Switch the active SAP Business One database and Service Layer connection to another environment by profile ID or database name; use "list" to view available profiles.
Instructions
Switch the active database and Service Layer connection to a different SAP Business One environment. Searches connection profiles by ID or database name (case-insensitive). Partial matches are only accepted when they resolve to a single profile.
Each profile can include DirectDb (DB) credentials, Service Layer (SL) credentials, or both. When switching environments, each stale or non-matching side is disconnected before replacement; a healthy side that still matches the selected profile remains active. If only one side connects successfully, it remains active - retry the failed side after fixing credentials. Tracks failed login attempts per profile and warns about account lockout risk under the configured login policy.
Available profiles: (no profiles loaded)
Use "list" as the query to reload and list all available profiles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The database identifier to connect to. Can be the profile ID or database name. Use "list" to see all available profiles. |