Key concepts
Data & mapping
Item data types
10 min
when building scenarios, you work with different data types, from simple text and numbers to more complex elements such as collections and arrays understanding these types is essential because each field in the module's settings accepts a specific format of information you can enter or map into the field defining the correct data type is important for performing operations with your data for example, https //help make com/math functions require the number data type, while text operations need the text data type data validation make validates the data you provide to ensure that it meets the field's expected format and any additional constraints if you enter or map an invalid data type, the module will stop processing and return a dataerror common validation errors occur when a field expects a number but receives text like “100 units” you try to map a collection such as {“name” “john", “age” “30", “city” “london"} into a field that expects simple text a date field receives an improperly formatted string data conversion make automatically coerces (i e , converts) certain data types when possible this helps your scenario continue running even when data types don't perfectly match (when there are minor type mismatches) for example a boolean data type mapped into the text field will be converted to "true" or "false" text a number data type mapped into the text field will be converted to text find out more about supported type coercion https //help make com/type coercion however, in some cases, this coercion may produce unexpected outputs, which can cause errors later in the scenario if coercion is not possible at all, make will also return a validation error thus, to avoid such errors and ensure correct scenario execution, use the correct data type from the start data types you can identify a field's data type by hovering over the name of the field or over the mapped value make supports the following data types /#text /#number /#boolean yesno /#date and time /#buffer binary data /#collection /#array text the text data type (also called {{string}} ) contains letters, numbers, and special characters (@ ? !) it can represent names, emails, addresses, product descriptions, prompts, and other longer texts {{product name}} validates text to make it meet any length requirements you can enter text manually or map it number the number data type contains numerical characters numbers can represent quantities, prices, phone numbers, ages, measurements, and calculations if you don't define your numbers as numbers in some modules, they may be considered a text data type make validates some numerical fields for specific ranges (minimum or maximum allowed values) you can enter the number data in the corresponding fields manually or map it boolean (yes/no) the boolean data type is used for items with only two possible values true or false in make, it's typically a yes or no option you can also map the boolean data type date and time a date data type is used for dates or date+time when you click a date field, a pop up calendar appears in the module settings the format of the date and time depends on the time zone specified in your profile settings (web section > time zone options) you can enter the date manually, set it from the calendar, or map it buffer (binary data) file content is usually sent as a buffer type (image content, video file, etc ) in some cases, there is text data included in this type (e g , a text file) {{product name}} is able to automatically convert text data in binary code to text (and vice versa) for example, when you want to include a file as an attachment to your email, the data field will expect a buffer data type you can map it from other modules for more information on files, see the docid\ oauioo6oujv0fyglzmrte article collection a collection is an item consisting of several subitems, represented as key value pairs (e g , "product" "dress" , "quantity" "5" ) for example, you can set these key value pairs while creating a json string in the create json module this will create a collection array an array is a list of items these items can be simple values like numbers, booleans, and strings (text), or dates, or collections for example, you can add a json string and then map the array into the array field of the iterator module you will see this array of collections in the input for more information about arrays, see https //help make com/mapping arrays https //help make com/array functions#