Breadcrumbs

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

ConnectionName

Optional

Provide one of the following values:

OR

Omit the argument to return results for all compatible connections with default aggregation settings.

Range

Optional

A range filtering specifying the Department IDs to be displayed. See Filtering Velixo Functions.

Status

Optional

An indicator of which status(es) of departments to include in the results.

"A" - active

"I" - inactive

"N" - Active non-posting

(a combination may be used - e.g., "AN" or "NI")

(available in version 2023.8 and higher)

Examples

Assuming the following configuration within Sage Intacct:


https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/fTSZFhzQnxjp9AmPABHirs3ygupOrfCX3w.png


Example 1

=SI.EXPANDDEPARTMENTRANGE(
    "Sage"
)
or
=SI.EXPANDDEPARTMENTRANGE(
    "Sage",
    "*"
)


Description

Returns all Department IDs.


Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/BWQxCDKmsrHXvVKiRmzm6kBKvWT05RqeKw.png


Example 2

=SI.EXPANDDEPARTMENTRANGE(
    "Sage",
    "100:300"
)


Description

Returns all Department IDs between 100 and 300 (inclusive).


Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/eV-KWOikasMNNp-APXD-SUvM5FY-tEA5HQ.png


Example 3

Assuming the following configuration within Sage Intacct:

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/MuoNCxi8wrwOC-7hi3vSmO-kEQz4UsFdGQ.png


=SI.EXPANDDEPARTMENTRANGE(
    "Sage",
    ,
    "AN"
)


Description

Returns all Active or Active non-posting Department IDs defined in Sage Intacct:

Results

https://s3.ca-central-1.amazonaws.com/cdn.velixo.com/helpdesk/MZqZ_EHUNfrgKDkKVr_D0KGAekF4zLCA5A.png


The InactiveDepartment is not included