When i'm integrating with a connection that has a path parameter such as GET https://api.com/products/123 How can I setup my connection in Sitecore Personalize to pass in the product Id (e.g. 123) as a dynamic variable?

1 Answer 1


To add dynamic path parameters into a connection, add the path parameter using FreeMarker. E.g. GET https://api.com/products/${productId}

An example is shown in the screen shot below

enter image description here

Path parameters and Decision Models

If you are using a Data System in a decision model, the path parameter can be passed in the request from the output of programmable or a decision table. Steps:

  1. Connect your programmable or decision to the Data System.

enter image description here

  1. Setup your programmable or decision table to output the required parameter.

Below is an example of a decision table setting the product_id based on the city of the guest.

enter image description here

  1. Open your data system and enter the name of your output as the request input for your path parameter. When you start entering the name of your output, typeahead will appear based on the programmable/decision table connected to your data system.

Below is an example of the product_id being set from the output a decision table.

enter image description here

When your decision model runs the path parameter will now be passed in as an input from the programmable or decision table. The response from the data system can now be used for further decisioning or personalization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.