Setting Request Unit

The Request unit requires a default sample value. You use the Formula editor in the Mapping dashboard to define this value.

For example, in this Request unit, we want to set a value for variant_id with the following value.

"QLM_KRONUS_4_DOORS_LIMO"

Clicking the Request unit opens the Mapping dashboard. A dark green area under a property is used to display the property's value. If no property has been set, it displays a Set data sample button.

Request property without a value

Clicking Set data sample opens the Formula editor. In this editor we want to enter a string value, so we enter this value including the quotes. You may have to delete a placeholder text null.

Entering a value in the Formula editor

Xapix will validate the formula and if the formula has no errors, click Save. Hovering over the data value displays the resolved value set in the Formula editor.

Click Save to save your changes.

If errors are found, changes will not be saved and the property value will revert to null.

Click Done to close the Mapping dashboard. Properties in the Request unit now have values.

The Help text next to the editing field provides a description of the types of data samples that can be entered, based on their data types. Data samples can include:

  • Boolean that resolves to either true or false

  • Numbers: integers such as 1 or 2.5

  • Strings: "text string within quotes"

For more details, see Set request data value in the Pipeline tutorial.