How to customize a data type for a column?

Creating custom data type




Custom data types are used to validate organization-specific data, such as employee ID, invoice ID, shipment tracking ID, or asset ID. By creating a custom data type, you can set a standard for your organization-specific columns in your data.

This allows you to measure the data quality for those columns like any other common data column and improves the data quality as a result.

You can create your own data type using the Create custom data type option in the Change data type transform.

To change the data type of a column

1.  Right-click the column name and select the Change data type  option from the context menu.



2.  Select Create custom data type  link from the side panel. 



3.  Provide a name for your custom data type in the Data type name & icon text box.
By default, an icon is created using the first two letters of the name to represent the new data type. You can customize this icon  by changing the letters and the color. 
4. Select an option from the Choose visibility drop-down. This determines the scope of the data type if it should be visible within the dataset or the workspace or the organization.

5. Select the required option from the Base type drop-down.  
The base type upon which a custom data type can be created are: Text, Number, Decimal, and Date.



6.  In the Conditions section, you can add conditions to define your data type with options to include match types and expressions.  

7.  To create a condition, select the match type and enter the value or an  expression. The different match types are:
  1. Wildcard
  2. String length comparators
  3. String length values

8. Select the  icon to add more conditions, if needed. 

9.  When adding multiple conditions,  the logical operators, AND or OR appear next to the conditions. You can click to toggle the logical operator between AND and OR.  
Using the logical operators, you can combine the conditions and apply logic to determine the rule of precedence. An expression of the condition order is displayed under the Criteria expression section. You can click Edit to alter the default expression using logical operators and parenthesis to specify the precedence or the sequential order as to which condition should be evaluated first. Click Save after making the required changes.
10. You can choose to Edit to alter the default expression using logical operators and parenthesis to specify the precedence or the sequential order as to which condition should be evaluated first. Click Save after making the required changes.

  

11.  Click the Create button and create the data type.

12. Select the Apply button to assign your custom data type to the selected column.

Examples 

Case 1: Match the asset ID pattern.  Macbook assets at Zykler & Co. are marked with an asset ID in the following format:

  ZYKLER-002981-MAC
  ZYKLER-002982-MAC
  ZYKLER-002983-MAC
  ZYKLER-002984-MAC

The pattern consists of the text 'ZYKLER' at the beginning, followed by an unique six-digit number and the text 'MAC' at the end. The data type "AssetID" can be created using the begins with and ends with conditions, and the AND operator to join the two conditions.

begins with:  ZYKLER
AND 
ends with: MAC 

Case 2: Match Employee ID pattern.  Zykler employees have their employee ID in the following format:

  jones-1234
  john-2211
  Bane-123456
  Michael-4233

To make sure the incoming data for the employee ID column follows this format, we can create a custom data type reflecting its pattern. The name in the first part starts with an upper or lower case character followed by a hyphen, then a unique number of 4-to-6 digits.

The pattern is matched using the regex:   " [a-zA-Z]*-[0-9]{4,6} ". 

With the regex option in DataPrep, you can create highly specific custom formats like these. 

SEE ALSO



    Zoho CRM Training Programs

    Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

    Zoho CRM Training
      Redefine the way you work
      with Zoho Workplace

        Zoho DataPrep Personalized Demo

        If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

        Zoho CRM Training

          Create, share, and deliver

          beautiful slides from anywhere.

          Get Started Now


            Zoho Sign now offers specialized one-on-one training for both administrators and developers.

            BOOK A SESSION





                        Still can't find what you're looking for?

                        Write to us:  support@zohoforms.com


                              



                            



                          Manage your brands on social media




                              Zoho Marketing Automation

                                Zoho Sheet Resources

                                 




                                    Zoho Forms Resources


                                      Secure your business
                                      communication with Zoho Mail


                                      Mail on the move with
                                      Zoho Mail mobile application

                                        Stay on top of your schedule
                                        at all times


                                        Carry your calendar with you
                                        Anytime, anywhere




                                              Zoho Sign Resources

                                                Sign, Paperless!

                                                Sign and send business documents on the go!

                                                Get Started Now




                                                        Zoho TeamInbox Resources



                                                                Zoho DataPrep Resources



                                                                  Zoho DataPrep Demo

                                                                  Get a personalized demo or POC

                                                                  REGISTER NOW


                                                                    Design. Discuss. Deliver.

                                                                    Create visually engaging stories with Zoho Show.

                                                                    Get Started Now










                                                                                          • Related Articles

                                                                                          • Custom data type

                                                                                            The Custom data type page lists all the custom data types created by the user across all the datasets in DataPrep. You can view the data type name, the data type, visibility, and how many datasets it is used in. You can also choose to edit, delete or ...
                                                                                          • Import data using saved data connections

                                                                                            DataPrep saves your data connections to avoid hassles in keying them often. To access your saved data connections 1. Click Saved data connections from the Choose a data source box while creating a new dataset. 2. Manage your saved data connections ...
                                                                                          • Import data from URLs

                                                                                            You can enter the URL to a CSV, TSV, JSON, HTML, XLS, XLSX or XML file. DataPrep also supports URL imports that require authentication. To import files from URLs 1. Click URL from the Choose a data source box while creating a new dataset. 2. Enter ...
                                                                                          • Import data from FTP servers

                                                                                            You can import files from FTP servers using the following steps. To import data using an FTP connection 1. Select the FTP option from Choose a data source box. 2. Configure FTP connection to connect to the server and fetch the file. Enter the file ...
                                                                                          • Import data from cloud databases

                                                                                            You can import data from the following cloud databases: Amazon RDS - MySQL Amazon RDS - MS SQL Server Amazon RDS - Oracle Amazon RDS - PostgreSQL Amazon RDS - Maria DB Amazon RDS - Amazon Aurora MySQL Amazon RDS - Amazon Aurora PostgreSQL Amazon ...
                                                                                          Wherever you are is as good as
                                                                                          your workplace

                                                                                            Resources

                                                                                            Videos

                                                                                            Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                            eBooks

                                                                                            Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                            Webinars

                                                                                            Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                            CRM Tips

                                                                                            Make the most of Zoho CRM with these useful tips.



                                                                                              Zoho Show Resources