Overview
Analytics by UnifyApps enables comprehensive data analysis and reporting capabilities. This means you can aggregate metadata, run SQL queries, and export reports in various formats (CSV, XLS or XLSX), making it perfect for generating insights, performance monitoring, and data-driven decision-making.


Use Cases
Customer Segmentation Analysis
Run an Analytics Query to group customers by location or purchase history using projections like count or distinct count. This can help identify key demographics and tailor marketing efforts accordingly.
Multi-Source Data Integration
Aggregate data from various sources (e.g., user activity, transaction logs, product reviews) using SQL queries by using Execute Analytics SQL Query. Join tables across multiple platforms to identify patterns and correlations, such as understanding how customer behavior correlates with product sales over time.
Automated Quarterly Budget Reports
A finance team automates the generation of quarterly budget reports using the Export Reports action. By setting time ranges and defining projections, they export summarized financial data (like revenue and expenses) in XLSX format. The reports are then shared with stakeholders for review, ensuring timely, accurate data for decision-making, and saving manual report-generation time.
Retrieving Metadata for Specific Fields
A user working within the Platform group wants to gather detailed metadata for fields such as Customer_Name, Customer_Age, and Customer_Location. They utilize the Aggregate Metadata action and specify these fields in the Add ID section.
Aggregate Metadata


The Aggregate Metadata action in Analytics by UnifyApps enables users to retrieve and explore detailed metadata for data fields within a specific object. It provides crucial insights into field properties such as whether they are sortable, filterable, searchable, or updatable, helping users better understand their dataset structure and enabling more efficient data handling.
Input Fields:


Group
: Select between Storage or Platform to determine the data context.Base Report
: Choose the object to query for metadata.Add ID
: Specify the field name for metadata extraction.Query
: Enter a partial field name to retrieve related metadata. For example, entering "Cus" returns fields like Customers_Profile.Page
: Configure pagination with Offset and Limit.Sortable
: Enable if you want to retrieve fields that are sortable.Filterable
: Enable if you want to retrieve fields that are filterable.
Output:
The action returns detailed metadata for each field, including:
Aggregation Field Type
Display Name
Entity Type
Field Type
Sortable, Filterable and Searchable
Updatable
Name Field
This action simplifies data exploration, particularly for large datasets, by allowing users to understand field properties quickly without needing to manually search through the data.
Analytics Query


The Analytics Query action in Analytics by UnifyApps enables users to fetch, process, and analyze data from a selected base report. This action provides powerful querying capabilities, including grouping, filtering, and projecting data, along with aggregation and percentage-based calculations.
Input Requirements:
Select Group
: Choose between Platform or Storage to define the data grouping.Select Base Report
: Choose the base report object.Select Projections:
Choose fields and apply aggregation functions like Count, Sum, Min/Max, Percentage Contribution, or even custom operations.
Assign aliases to projections for clarity.
Optionally, calculate percentage changes.
Select Additional Projections
: Add supplementary projections with similar options for fields, aggregation, and percentage change inclusion.Time Range
:Define a time field for the query.
Specify start and end times, including previous periods for comparison.
Filter
:Create conditions using fields and values to filter data efficiently.
Add multiple conditions or condition groups for complex queries.
Search Object
:Specify fields and their values to narrow down search results further.
Pagination
:Use Offset and Limit to manage the number of records retrieved.
Sorting
:Add fields to sort the results by specific attributes.
Include Total Count
:Set this option to true for retrieving the total count of records matching the query.
This action allows robust customization to extract insights effectively from large datasets while offering precision in data manipulation.
Execute Analytics SQL Query


The Execute Analytics SQL Query action in Analytics by UnifyApps allows users to directly execute custom SQL queries against their data, providing granular control and flexibility for advanced analysis. This action supports dynamic schema definition and integration with custom workflows.
Input Fields Requirements:
SQL Query
:Enter the SQL query to execute.
Prefix every table name with ENTITY_ and every column name with _pr_ to comply with the query format.
Example: Select _pr_columnName from ENTITY_TableName
Select Group
:Choose between Storage or Platform to define the data context.
Define Result Schema
:Specify the structure of each row in the query response. This is essential for defining alias column names and ensuring accurate mapping.
Add Field: Manually add fields by specifying:
Key: Identifier for the field.
Display Label: Displayed label for the field.
Type: Data type (e.g., string, number).
Optional: Mark the field as optional.
Default Value: Set a fallback value.
Nest Under: Place the field within a hierarchical structure, if needed.
Use Code Snippet: Define the schema using a JSON, XML or XSD snippet.
Create a new snippet or select an existing one from saved options.
Map from Step: Map the schema directly from another automation step.
This action is ideal for advanced users who need to execute SQL queries for custom reporting, filtering, or complex data transformations while dynamically shaping the output schema.
Export Reports


The Export Reports action provides users with the ability to generate and export customized reports based on specified parameters. This action enables users to select data projections, filters, sorting options, and define the desired time range, along with the option to include the total record count. Users can also choose between different file formats (CSV, XLS, or XLSX) for the exported report, ensuring flexibility and compatibility with various tools. The generated report is available for download via a preview link.
Input Fields:


File Name
: Prefix for the exported file name.Select Group
: Choose between Storage or Platform for the data context.Select Base Report
: Choose the base report object.Select Projections
: Choose fields to aggregate and customize based on required operations like sum, count, etc.Time Range
: Define the start and end time for the data included.Filter
: Add conditions for filtering data.Search Object
: Specify fields and their values to filter results.Page
: Set offset and limit for paginated data.Sorts
: Define how the data should be sorted.Include Total Count
: Toggle to include the total count of records.File Format
: Choose between CSV, XLS, or XLSX.
This action is ideal for users who need to export formatted reports, whether for internal analysis, sharing, or integration with other systems.
Converts Filter to SQL Condition
The Converts Filter to SQL Condition action in Analytics by UnifyApps enables users to transform visual filter inputs into a SQL-compatible condition string. This allows for seamless integration of UI-based filter logic into backend SQL queries, ensuring data consistency and query efficiency.


Input Fields:
Group
: Choose between Storage or Platform for the data context.Base Report
:Choose the base report object.
Filter: Set conditions to define what subset of data you want to filter. You can specify:Where: Enter the field name you want to apply the condition to.
Condition: Define condition operators such as Equals to, Start with, In etc.
Enter values for each condition.
Additional options include:
Add Condition: Add a new condition within the same group.
Add Condition Group: Create logical groups using AND/OR conditions.
Add Filter: Combine multiple filters for complex logic.
Output: The action returns a SQL-compatible condition string in JSON format.


The output condition string can be directly appended to SQL queries, such as when using the Execute Analytics SQL Query action. This enables users to dynamically inject filter conditions into custom queries, enhancing automation, flexibility, and scalability of data-driven operations.
Export SQL Query Result
The Export SQL Query Result action in Analytics by UnifyApps allows users to execute a custom SQL query on a selected group (Storage or Platform) and export the result as a downloadable file. This is useful for automating data extraction, reporting, and sharing datasets across teams or systems.
Input Fields:
File Name
: Provide a prefix for the exported file name. The full file name will include this prefix along with a timestamp and appropriate file extension.SQL Query
: Write your SQL query to retrieve the desired data. You can query any available object or entity.
Select Group
: Choose between Storage or Platform for the data context.Define the Result Schema
(Optional): Define the expected structure of each row in the query result. This helps in downstream automation where you may want to access specific fields. You can use:Add Field to manually specify field names
Use Code Snippet to write custom parsing logic
Map from Step to auto-map schema from previous step
Output: On successful execution, the action returns the following details:
File Type: The format of the exported file
File Name: The system-generated full filename
Source: Path within cloud storage
Source Type: Indicates storage type
Link: A secure URL to download the exported file
ua:type: Always returns "FILE" to indicate file object
Execute Analytics SQL Update Query
The Execute Analytics SQL Update Query action in Analytics by UnifyApps is used to modify existing records in a dataset using SQL UPDATE statements. This action is ideal for automation scenarios where dynamic updates to datasets are required based on business logic.
Input Fields:


SQL Query
: Provide a valid UPDATE SQL statement to modify data in the selected groupSelect Group
: Choose between Storage or Platform for the data context.
Output:


On successful execution, the action returns the count of records that were updated.