AccountNamesByAccountType

This function evaluates to the list of names of Accounts on the specified Object having the indicated Account type.

Description

This function returns a list of names of Accounts on a specified Object having the indicated Account type, sorted in ascending Account priority date order. Accounts which don’t have a priority date are at the end of the list, sorted in ascending name order.

Type

LIST {STRING}

Arguments

Type

Meaning

1

OBJECT

The Object.

2

STRING

Account type name (currently, one of "Diversion", "Storage", or "PassThrough") or "ALL".

Evaluation

The set of Accounts on the Object are examined. The names of the Accounts having the specified account type are added to the returned list.

If the Account type argument is "ALL," then that attribute is ignored. The returned list will contain the names of ALL Accounts on the Object.

The list is sorted as described above.

Comments

Priority dates are properties of Accounts.

 
AccountNamesByAccountType (%"Heron Reservior", "Storage")
 
{"Account1", "Account2"}