Step 1: Create a Project in Workato
- Log in to your Workato account.
- Navigate to the Projects section from the left-hand panel.
- Click Create (top-right corner) to create a new project.
- Provide a descriptive name, e.g., “Excel Calculation Integration”.
Step 2: Create a Recipe
- Inside the project, click Create → New Recipe.
- Name the recipe: “SpreadsheetWeb API Integration Recipe”.
- For the trigger, choose Function Call:
- Allows dynamic input values for testing and automation.
Step 3: Define Input Schema for Dynamic Data
- In the recipe builder, select Add Step → Function Call.
- Create a schema to define input variables:
Example JSON Schema:{ "originZIP": "string", "destinationZIP": "string", "weight": "string" }
- If workspaceIdand applicationId are static, exclude them from the schema. They will be set directly in the API request.
Step 4: Send an HTTP Request to SpreadsheetWeb API
- Add a step → Select Send Request via HTTP.
- Configure the HTTP Request:
- Authentication: Select No Authentication.
- URL: https://api.spreadsheetweb.com/calculations/calculatesinglesimple
- Method: POST.
- Request Body: Enter the JSON structure below and map dynamic variables:
{
"request": {
"workspaceId": "your-workspace-id",
"applicationId": "your-application-id",
"inputs": {
"originZIP": "<originZIP>",
"destinationZIP": "<destinationZIP>",
"weight": "<weight>"
},
"outputs": ["cost"]}}
- Replace your-workspace-id and your-application-id with your SpreadsheetWeb credentials.
Use dynamic input variables (e.g., <originZIP>) to send data from the schema.
- Add a header:
-
- Content-Type: application/json.
Step 5: Handle and Display API Response
- Add a Log Message to Job Report step to view API results:
- Message Field: Map the output field containing the cost value from the API response.
Example:
- Message Field: Map the output field containing the cost value from the API response.
$response.request.outputs.cost
- This step logs the API result for debugging and validation.
Step 6: Test the Integration
- Run the recipe with test inputs:
- Provide originZIP, destinationZIP, and weight via the Function Call trigger.
- Verify the steps:
- Confirm the HTTP request is sent with the correct inputs.
- Review the Job Report for the API response and ensure the cost value is displayed correctly.