Data Functions serve as a bridge between an Application and a Data Table, creating a relationship between the two. This ensures that any record submitted through the application is directed to and stored in the data table.
There are two types of data functions:
In this article, we will discuss about App Data Functions and How to create them
Data functions control how data flows between an application and its data table, ensuring seamless interaction. They define how records are created (add), modified (update), or removed (delete) based on specific triggers and workflow steps. These functions play a crucial role in maintaining data accuracy, ensuring that each action performed within the application reflects correctly in the database
Creating data functions allows an application to interact with a data table effectively.
Before setting up a data function in an application, data table functions must be created as a prerequisite. This ensures that the application can map its fields to the corresponding fields in the data table, making data processing smooth and error-free.
Conditions in data functions act as rules that define where and how data should be stored based on specific criteria. They help filter, direct, or modify data before it gets saved in a data table. By setting conditions, you ensure that only relevant data is stored in the appropriate table, maintaining data accuracy and organization.
Example
In an employee onboarding application, all employee records might be stored in a master employee table. However, employees belong to different departments, and you may need to store department-specific details in separate tables. Conditions help achieve this by applying specific logic:
- Condition: If the employee’s department is “Product,” the record is stored in the Product Employee Table in addition to the master table.
- Condition: If the employee’s department is “Marketing,” the record is stored in the Marketing Employee Table alongside the master table.
These conditions ensure that the data is not only stored in a central repository but also categorized correctly based on business requirements. This improves data retrieval, reporting, and management while preventing unnecessary duplication or misplacement of records.
Try creating a data function in your application to understand how it works.