Brickworks Jinjava inserts
This article contains a reference of Brickwork inserts which can only be used within the Brickworks feature on the interface.
Retrieving values from fields
- Insert is allowed in: Jinjava code field type
- Syntax:
{{ record.APIname }}
APInamemust be replaced with the value of the API name option available in the settings of the field on the interface. - Description: This insert enables retrieval of values from other fields in a record. Retrieval is limited to fields containing primitive data types: strings, numbers, and booleans
- Where is the API name value located?:

API name in the configuration of the schema field
In the tabs below, you can find the request for the preview of record results and its response.
The request contains two fields:
productNamewhich is a string fieldproductIdwhich is a Jinjava code field
{
"identifierValue": "74029569-b01d-5ade-8cc2-6e8f7c136649",
"context": {},
"values": {
"productName": "Sneakers ABC",
"productId": "The identifier of the {{ record.productName }} is: 123456"
}
}Retrieving context
- Allowed in:
- Jinjava code field type
- Product context field in AI recommendation field type,
- Primary key field in Catalog field type
- Syntax:
{{ context.myField }}
ReplacemyFieldwith the parameter name whose value will be used as a context. - Description: Use the context insert to supply values for non-profile variables. When previewing the record, include the variable name as the key and its corresponding value to properly render the Jinjava field output in the preview.
- How to provide context for retrieval?
- In the Additional parameters in the preview of the record on the Synerise interface
- In the Jinjava for generating an object with record results
- In an object generation request, in the
contextobject.
In the tabs below, you can find the request for the preview of record results and its response.
The record contains the following fields:
productNamewhich is a string fieldproductIdwhich is a string fieldproductInformationwhich is a catalog field (Synerise object)productwhich is an AI recommendation field (Synerise object)
For Synerise object an
{
"identifierValue": "74029569-b01d-5ade-8cc2-6e8f7c136649",
"context": {
"itemId": "0000208295260"
},
"values": {
"productName": "Sneakers",
"productId": "0000208295260",
"productInformation": {
"id": "15988",
"itemKey": "{{ context.itemId }}"
},
"products": {
"id": "TtZiwYdJQbuR",
"params": {
"itemId": "{{ context.itemId }}"
}
}
}
}