Skip to content

Commercial operations and calculations

Maintain subscription totals

Recalculates subscription quantity from eligible deals.

Available recipeIncludes configuration, sample data and tests

Make it your own

Review the setup and limits below, then open an editable copy in Turbyn.

Use this recipe

Your selection stays with you through signup.

What it does

Full recalculation avoids duplicate increments.

What to customize

Set eligible stages.

Run the included tests with your configuration and mappings. Review success, missing-input and failure results before publishing.

Expected outcome

This included example runs in dry-run mode with synthetic data. Integration tests separately cover provider responses using test doubles. It is not a live customer result.

Sample input

sample-input.json

{
  "inputFields": {
    "field1": "{\"deals\":[{\"id\":\"d1\",\"stage\":\"closedwon\",\"quantity\":3}]}"
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "3",
    "output2": "1",
    "output3": "[{\"id\":\"d1\",\"quantity\":3}]"
  }
}

Returned fields

output1
quantity total
output2
deal count
output3
contributors

What changes when it runs

Reads deal rows; no writes.

Ready to try it with your rules?

Map your inputs, test a sample and publish the version you’ve checked.

Use this recipe