Step 1: Setting Up the Quickbase Table
- Log in to your Quickbase account.
- Create a new Table:
- Name: Shipping Cost API Integration.
- Add Fields:
- originZIP (Text)
- destinationZIP (Text)
- weight (Number)
- cost (Number, for API results).
Step 2: Prepare Input Fields in QuickBase UI
- Go to Form Builder for your table.
- Add input fields:
- originZIP, destinationZIP, weight.
- Add a Save button to submit the form and trigger the pipeline.
Step 3: Create a Pipeline in Quickbase
- Go to Pipelines → Create New Pipeline.
- Set the Trigger:
- Event: Record Created (when new data is submitted).
- Map the form fields:
- originZIP, destinationZIP, weight → Dynamic placeholders.
Step 4: Make an API Request to SpreadsheetWeb
- Add a “Make Request” step to the pipeline.
- Configure the API request:
- Method: POST
- Endpoint:
https://api.spreadsheetweb.com/calculations/calculatesinglesimple
-
- Content-Type: application/json
- Request Body:
{ "workspaceId": "your-workspace-id", "applicationId": "your-application-id", "inputs": { "originZIP": "{{a.originZIP}}", "destinationZIP": "{{a.destinationZIP}}", "weight": "{{a.weight}}" } }
Replace workspaceId and applicationId with your credentials.
- Authentication (Optional):
- If using token-based authentication, add a header:
Authorization: Bearer <your-token>
Step 5: Update Quickbase with API Results
- Add an Update Record step after the API request.
- Map the API response to the cost field:
- cost → {{b.response.outputs.cost}}
- Replace b with the step reference for your API response.
Step 6: Test the System
- Open the form and input test data:
- originZIP, destinationZIP, and weight.
- Click Save to trigger the pipeline.
- Verify:
- The pipeline runs successfully.
- The cost field in the table is updated with the API result.