SI.EXPANDDEPARTMENTRANGE
Overview
The SI.EXPANDDEPARTMENTRANGE function returns an array containing one or more Sage Intacct Department IDs (based on the specified range).
Syntax
=SI.EXPANDDEPARTMENTRANGE(ConnectionName, Range, Status)
Arguments
The SI. EXPANDDEPARTMENT RANGE function uses the following arguments:
Argument | Required/ Optional | Description |
| Required | The name of the connection as configured in the Connection Manager |
| Optional | A range filtering specifying the Department IDs to be displayed. See Filtering Velixo Functions. |
| Optional | An indicator of which status(es) of departments to include in the results.
(a combination may be used - e.g., |
Examples
Assuming the following configuration within Sage Intacct:

Example 1
=SI.EXPANDDEPARTMENTRANGE("Sage")
or
=SI.EXPANDDEPARTMENTRANGE("Sage","*")
Description
Returns all Department IDs.
Results

Example 2
=SI.EXPANDDEPARTMENTRANGE("Sage","100:300")
Description
Returns all Department IDs between 100 and 300 (inclusive).
Results

Example 3
Assuming the following configuration within Sage Intacct:

=SI.EXPANDDEPARTMENTRANGE("Sage",,"AN")
Description
Returns all Active or Active non-posting Department IDs defined in Sage Intacct:
Results

The InactiveDepartment
is not included