Skip to content

Commercial operations and calculations

Carry forward previous product pricing

Selects the latest prior price for a product and currency.

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

Rejects conflicting latest candidates unless explicitly allowed.

What to customize

Provide historical candidates and conflict policy.

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": "{\"sku\":\"A\",\"currency\":\"USD\",\"candidates\":[{\"sku\":\"A\",\"currency\":\"USD\",\"price\":99,\"date\":\"2025-01-01\",\"dealId\":\"d1\"}]}"
  }
}
Sample output

sample-output.json

{
  "outputFields": {
    "output1": "99.00",
    "output2": "d1",
    "output3": "{\"sku\":\"A\",\"currency\":\"USD\",\"date\":\"2025-01-01\"}"
  }
}

Returned fields

output1
price
output2
source deal
output3
provenance

What changes when it runs

Reads prior price 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