Example
What you'll build
Build an automation that retrieves production orders from SAP Business One through the Production connector. The automation logs the returned collection for downstream review.
Operations used:
- List Production Orders : Retrieves the ProductionOrders collection from SAP Business One.
Architecture
Prerequisites
- An SAP Business One company database with Service Layer access
- The SAP Business One Service Layer URL
- Credentials for a user who can read production orders
Setting up the Production integration
New to WSO2 Integrator? Follow the Create a New Integration guide to set up your integration first, then return here to add the connector.
Adding the Production connector
Step 1: Open the connector palette
Select Add Connection in the Connections section.
Step 2: Select the Production connector
- Enter
sap.businessone.productionin the search field. - Select the Production connector card.
Configuring the Production connection
Step 3: Bind the connection parameters to configurable variables
Bind the required connection fields to configurable variables, and set the connection details.
- Session : Supplies the company database, username, and password through required configurable variables.
- Config : Supplies optional client settings for the connection.
- Service Url : Supplies the Service Layer endpoint through a required configurable variable.
- Connection Name : Identifies the saved connection in the automation flow.
Step 4: Save the connection
Select Save and verify that the connection appears in the Connections section.
Step 5: Set actual values for your configurables
- Select Configurations at the bottom of the project tree under Data Mappers.
- Enter a value for each configurable listed below before you run the integration.
- serviceUrl (
string) : Service Layer endpoint for the SAP Business One environment. - companyDb (
string) : SAP Business One company database name. - userName (
string) : Username for the SAP Business One session. - password (
string) : Password for the SAP Business One session.
Configuring the Production List Production Orders operation
Step 6: Add an automation entry point
- Select Add Entry Point next to Entry Points.
- Select Automation.
- Select Create to accept the settings.
Step 7: Expand the connection and configure the List Production Orders operation
- Select Add Step in the automation flow.
- Expand sapProductionClient to display its operations.
- Select List Production Orders. This operation has no required request parameters.
- Review the generated result settings.
- Result : Names the result variable used by the following log action.
- Select Save.
Step 8: Log the List Production Orders result
- Select Add Step after the connector operation.
- Expand Logging.
- Select Log Info.
- Select Expression for Msg.
- Enter
productionOrders.toJsonString(). - Select Save and return to the visual flow.
Try it yourself
Try this sample in WSO2 Integration Platform.
More code examples
The SAP Business One connectors provide practical examples illustrating usage in various scenarios. Explore these examples, covering use cases like listing open sales orders, reporting inventory stock, and logging CRM activities.





