Example
What you'll build
Build an automation that connects to Smartsheet using a secure Bearer token and retrieves a list of all sheets in your account. The integration uses the ballerinax/smartsheet connector to authenticate and call the Smartsheet API.
Operations used:
- listSheets : Retrieve all sheets accessible to the authenticated user
Architecture
Prerequisites
- A valid Smartsheet account and a Personal Access Token (generated in Smartsheet → Account → Apps & Integrations → API Access)
Setting up the Smartsheet 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 Smartsheet connector
Step 1: Open the add connection palette
In the left-hand sidebar tree, expand Connections, then select the + (Add Connection) button. The Add Connection palette opens on the right.
Step 2: Search for and select the Smartsheet connector
- Enter
smartsheetin the search box. - Select the Smartsheet (
ballerinax/smartsheet) connector card to open the connection configuration form.
Configuring the Smartsheet connection
Step 3: Fill in the connection parameters
Bind the connection parameters to configurable variables in the connection form:
- Config : Holds the authentication settings for the connector; enter the expression
{ auth: { token: smartsheetAccessToken } }, referencing a configurable variable namedsmartsheetAccessToken - Connection Name : Leave as
smartsheetClient
To create the smartsheetAccessToken configurable variable:
- Select inside the Config expression text box to open the helper panel.
- Navigate to the Configurables tab.
- Select + New Configurable.
- Set Name to
smartsheetAccessTokenand Type tostring. - Select Save.
Step 4: Save the connection
Select Save Connection. WSO2 Integrator saves the connection definition and returns to the integration design canvas. The smartsheetClient node is now visible on the canvas.
Step 5: Set actual values for your configurables
- In the left panel, select Configurations.
- Set a value for each configurable listed below.
- smartsheetAccessToken (string) : Your Smartsheet Personal Access Token, generated in Account → Apps & Integrations → API Access
Configuring the Smartsheet listSheets operation
Step 6: Add an automation entry point
- On the integration design canvas, select + Add Artifact.
- In the artifact picker, select Automation.
- In the Create New Automation panel, leave the defaults and select Create.
WSO2 Integrator adds an Automation entry point named main under Entry Points in the sidebar tree and opens the Automation flow canvas.
Step 7: Select and configure the listSheets operation
- On the Automation flow canvas, select the + button between the Start node and the Error Handler node.
- In the Connections section of the node panel, select smartsheetClient to expand it.
- Select List Sheets to open the operation configuration panel.
Configure the following parameter:
- Result : Enter
listSheetsResultas the result variable name
Select Save to add the node to the flow.
Try it yourself
Try this sample in WSO2 Integration Platform.
More code examples
The Smartsheet connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
- Project task management - Demonstrates how to automate project task creation using Ballerina connector for Smartsheet.





