If you choose Array from the dropdown, select the data type of its elements in the Array of field . For example, if you choose String, RudderStack accepts only string elements for that array.
Click Save to save the changes and add the new property to your data catalog.
Add multiple properties with the same name
You can create multiple properties with the same name as long as:
They have a different data type, OR
In case of arrays, they have different Array of values. For example, if you create a property called test_property of the array data type and the Array of field set to String, as shown:
In that case:
You can create another property called test_property with a different data type, for example, Integer.
You can create another property called test_property with an array data type and a different Array of field setting, for example, Boolean and String.
You cannot create another property called test_property with an array data type and the Array of field set to String.
Property details
Once created, you can click the property to see the following information:
Property details like name, description, and data type. You can also make any changes to these details - make sure to click Save for any changes to take effect.
Connections to tracking plans, along with the connected sources and associated events (only visible after you map the property to an event while creating a tracking plan).
Delete property from data catalog. Note that you cannot delete any property from the catalog if it is already a part of any tracking plan.
Advanced rules
While adding or editing a property, use the Advanced rules tab to add rules that define how RudderStack should capture a property.
You can set advanced rules for properties of all the data types except Object and Null.
You can define the following advanced rules for the property depending on its data type:
Enum: Define the acceptable values for the property.
Format: Define the acceptable format in which the property values should be captured. RudderStack supports the below formats:
date-time
date
time
email
hostname
ipv4
ipv6
uuid
Pattern: Define the property constraints using regular expressions. RudderStack supports the below patterns:
Email
Date-time (YYYY-MM-DDTHH:MM:SS)
Date (YYYY-MM-DD)
Time (HH:MM:SS)
URL
IPv4
IPv6
Custom (define a custom pattern)
Minimum/maximum length: Define the acceptable string length for the property.
Enum: Define the acceptable values for the property.
Minimum/Maximum: Define the range acceptable for the property.
Exclusive Minimum/Maximum: Define the exclusive range acceptable for the property.
Multiple Of: Define a number whose multiples are the only acceptable values for this property.
Minimum/Maximum items: Define the minimum and maximum number of items acceptable for this property.
Unique items: Specify whether RudderStack should accept arrays with only unique items. To do so, turn on the Allow unique items toggle.
Enum: Define the acceptable values for the property.
Custom data types
This feature is in beta as part of RudderStack’s Early Access Program, where we work with early users and customers to test new features and get feedback before making them generally available.
Note that these features are functional but can change as we improve them. Contact to get access.
You can use the Custom Data Types tab to set predefined rules and later apply them to multiple event properties as per your requirement. With this approach, you can avoid setting the same set of advanced rules to each property individually.
This section highlights the steps for adding a custom type in your data catalog and then defining a new property to use that custom type.
Define custom types
Go to the Properties tab of the data catalog and click the Custom Data Types (beta) tab. Then, click Add custom type.
Specify the name, description, and data type under Type details:
The custom type name must be between 2 and 65 characters long. Also, it must start with a capital letter and contain only letters, numbers, underscores and dashes.
Go to the Rules tab and define the rules for the data type selected above. An example for a string is shown below:
Click Save to save the changes.
Examples
This section highlights some specific use cases of creating new custom types in your data catalog.
Create a custom type that is an array of other custom types
You can create a custom type that is an array of another custom type, that is, it accepts only a list of that custom type.
Specify the name and description (optional) of the custom type.
Under Type, select Array.
Under Array of, select Custom data type (beta).
Select the required Custom data type.
Specify the rules for this new array custom type, as required.
The following image highlights a custom type named ArrayCustomType that is an array of another custom type StringCustomType.
Note that you can specify only one custom type in the Array of field, as seen in the above image.
Create an object custom type that accepts specific properties
You can create a custom data type of object type that only accepts specific properties present in your data catalog:
Specify the name and description (optional) of the custom type.
Under Type, select Object.
Select the required properties present in your data catalog in the Properties field.
Mark the properties as Optional or Required, as per your requirement.
Create new properties using custom types
In the Properties tab of the data catalog, click Add property.
Enter the property name and description.
Under Data type, select Custom data type (beta). Then, select the custom data type defined in Step 1 above.
Once you select the custom data type, the property automatically inherits all the rules that you defined while creating the custom data type.
Create a property that accepts an array of a custom type
You can create a new property that accepts an array of a custom data type.
Specify the property name and description (optional).
Choose Data type as Array.
Set the Array of field to Custom data type (beta).
Select the required Custom data type.
Set the Property rules, as required.
The following image highlights a new property called products_array that is an array of a custom type StringCustomType:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.