Overview
The SI.EXPANDCOSTTYPERANGE returns an array containing one or more cost types configured within Sage Intacct.
Syntax
=SI.EXPANDCOSTTYPERANGE(
ConnectionName,
Project,
Task,
CostType,
IncludeInactive,
IncludeProjects,
IncludeTasks
)
Arguments
The SI.EXPANDCOSTTYPERANGE function uses the following arguments:
|
Argument |
Required/ Optional |
Description |
|
|
Optional |
Provide one of the following values:
OR Omit the argument to return results for all compatible connections with default aggregation settings. |
|
|
Required |
The ID of the project (or multiple projects) for which Cost Types are to be shown (available in version 2023.10 and higher) |
|
|
Required |
The ID of the task (or multiple tasks) for which Cost Types are to be shown (available in version 2023.10 and higher) |
|
|
Optional |
The range of cost types to include in the results. See our article on including multiple argument values |
|
|
Optional |
Determines whether or not to include entries with a Status field set to |
|
|
Optional |
(available in version 2023.10 and higher) |
|
|
Optional |
(available in version 2023.10 and higher) |
Examples
Example 1 - all cost codes
=SI.EXPANDCOSTTYPERANGE(
"Sage",
"*",
"*"
)
Description
Returns all cost types configured within Sage Intacct
Result
Example 2 - active cost codes
Assuming the following configuration within Sage Intacct:
=SI.EXPANDCOSTTYPERANGE(
"Sage",
"*",
"*",
,
FALSE
)
Description
Returns all ACTIVE cost types configured within Sage Intacct
Result
The inactive cost type BUR is not included
Example 3 - specific project and task
=SI.EXPANDCOSTTYPERANGE(
"Sage",
"20-001",
"G01-040"
)
Description
Returns all cost types associated with task G01-040 in project 20-001
Result
(cell references have been used for some arguments in this example)
Example 4 - including project IDs
=SI.EXPANDCOSTTYPERANGE(
"Sage",
"*",
"*",
FALSE,
TRUE
)
Description
Returns all Project IDs and their corresponding active Cost Types
Result
Example 5 - including task codes
=SI.EXPANDCOSTTYPERANGE(
"Sage",
"TEST-2205",
"*",
FALSE,
FALSE,
TRUE
)
Description
Returns all Task Codes and corresponding active Cost Types for project TEST-2205.
Result
If cost types have not been set up with Sage Intacct (or your user account does not have access to the cost type configuration), the function will return a #N/A error: