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.
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.
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
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.
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
Numbers: integers such as
"text string within quotes"