Acumatica Business Central Sage Intacct STACK Takeoff & Estimate Velixo Classic Velixo CLI
Acumatica Business Central Sage Intacct STACK Takeoff & Estimate Velixo Classic Velixo CLI

SI.REPORTDEFINITION

Overview

SI.REPORTDEFINITION returns the definition of a Sage Intacct custom or interactive report. Use it to find the names of the report's run-time filters before you pass their values to SI.REPORT in its Arguments argument.

The function works with custom and interactive reports only. Standard and stored reports have no definition to return.

SI.REPORTDEFINITION calculates in Excel only.

Requirements

  • The report exists in Sage Intacct, and your Sage Intacct user is allowed to run it.

Syntax

=SI.REPORTDEFINITION(
    ConnectionName,
    ReportType,
    ReportName
)

Arguments

Argument

Required / Optional

Description

ConnectionName

Optional

The name of one Sage Intacct connection, as defined in Connection Manager.

If you omit it, the function runs on all your Sage Intacct connections and returns their results side by side, each under a row with the connection's name. See Multiple connections per formula.

ReportType

Required

The type of report.

Accepted values: custom, interactive. Letter case is ignored.

The value must match how the report was built, as the Report type column of SI.EXPANDREPORTRANGE shows it. Any other value, such as standard, returns an invalid-value error.

ReportName

Required

The report name, exactly as it appears in Sage Intacct. The name is case-sensitive.

Output

The function returns four columns, Type, ID, Label and Function, and one row for each part of the report definition. The Type column says what the row describes:

Type

What the row describes

Object

The Sage Intacct object the report reads.

Report type

How a custom report lays out its data. ID is summary for a report with grouping, or tabular for a report without grouping.

Column

A report column. ID is the column's Sage Intacct path, and Label is its heading.

Group

A grouping level. ID is the grouped field's path. Label is empty.

Aggregate

A function the report calculates for a column in each group, such as a sum. ID is the column's path, Label describes the result, such as Sum of 1-30, and Function names the function, such as sum.

Grand total

A grand total the report calculates for a column. ID is the grand total's Sage Intacct path, Label is the name of its total row, such as Sum Total, and Function names it.

Argument

A run-time filter. ID is the name to put in the first column of the Arguments range of SI.REPORT. Label can be empty.

The definition doesn't say whether a filter takes a date or a date range. Check the report's filters in Sage Intacct, and add the date suffixes described in SI.REPORT.

Example

=SI.REPORTDEFINITION("Intacct", "custom", "AP Aging by Project")

Description: returns the definition of the custom report AP Aging by Project: its columns, groupings, aggregates and run-time filters, such as ASOFDATE.

Result: one row per part of the definition, as described in the Output section, with ASOFDATE in the ID column of an Argument row.

si-reportdefinition-example.png

Troubleshooting

  • The 'name' report does not exist. Check the spelling and letter case of ReportName, and check that ReportType matches the report.

  • 'ReportType' has invalid value 'value': The value should match one of the following values: custom,interactive. Use custom or interactive. Standard and stored reports have no definition.

  • The definition of the name report could not be read. Sage Intacct returned the definition in a form that Velixo doesn't recognize. Contact Velixo support, and give the report name.