Template transform¶
The template transform comes with a bundle of pre-defined transform templates. These are meant to be used for specific use-cases. At this time the following named templates are available:
The common configuration options are:
Prototype¶
{
"type": "template",
"properties": {
"some-property": "some-value"
},
"template": "template-name"
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String | Object |
The name of the template, i.e. |
Yes |
|
|
Object |
A dictionary of properties that are passed to the template. The actual properties that each template takes will vary. See the template specific documentation below. |
Yes |
transform-collect-rest¶
This template transform is used in a collect pipe to retrieve the $origin
property from the share pipes sink dataset. It will do this by hop-ing to the share sink dataset by joining the primary key with the $generated_id
property.
The configuration options for this template are:
Prototype¶
{
"type": "template",
"properties": {
"rest_system": "hubspot-139567314",
"operation_lookup": "deal-lookup",
"operation_lookup_properties": {
},
"original_property": "_original",
"primary_key": "id",
"share_dataset": "hubspot-139567314-hubspot-deal-share"
},
"template": "transform-collect-rest"
}
Template properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
The id of the REST system to use. |
Yes |
|
|
String | List<String> |
The names of the properties that hold the primary key of the entity. |
Yes |
|
|
String |
The name of the corresponding share dataset. The template will hop to the share dataset to retrieve the |
Yes |
|
|
String |
The id of the REST system operation to use for lookups. This operation is used to apply the source with parameterized input pattern. |
Yes |
|
|
Object |
The properties to pass to the lookup operation. |
No |
|
|
String |
Used to get access to the original source entity as was before the lookup operation. If you set this property to e.g. |
No |
|
|
String |
The id of the REST system operation to use for lookups of deletes. Requires the |
Yes |
|
|
Object |
The properties to pass to the lookup of deletes operation. |
No |
transform-defaults-rest¶
This template transform is used when you want to merge the source entity’s properties with the response body from a default values lookup REST operation. The source entity’s properties takes precedence.
The configuration options for this template are:
Prototype¶
{
"type": "template",
"properties": {
"rest_system": "hubspot-139567314",
"operation": "deal-lookup",
"operation_properties": {
},
"primary_key": "id"
},
"template": "transform-defaults-rest"
}
Template properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
The id of the REST system to use. |
Yes |
|
|
String | List<String> |
The names of the properties that hold the primary key of the entity. |
Yes |
|
|
String |
The name of the operation to use to retrieve the default values. |
No |
|
|
Object |
The properties to pass to the default values operation. |
No |