CasewareDocs
New in Caseware Cloud Engagements 2026-05See what's new

GetTestFilter

Returns a filter object which is used to look up the audit tests based on test property values.

Compatibility

Available as of IDEA version 10.1

Syntax

GetTestFilter(property as String, val1 as Object, val2 as Object ...) as Object

Parameter

property

Localized name of the audit test property.

val1, val2, ...

List of possible values of the property.

Remark

The name of the property is localized, i.e. its language corresponds to the language of the audit tests to look up.

Example

Dim mc As Object 
Dim eqBuilder As Object
Dim filter As Object
Dim tableTagging As Object

Set mc = SmartContext.MacroCommands
Set eqBuilder = mc.ContentEquationBuilder
Set filter = eqBuilder.GetTestFilter("id", "2baa485c-bb70-567f-b694-0ad5e8eff0d7",
"458550b7-31el-5440-a4f3-ae5f076b6594",
"e2f1f362-dae1-57f6-b322-3dddc412f25e")

Set tableTagging = mc.TagManagement.Tagging ("ABC.IMD")

tableTagging.SetTag "AccountNumber", "ADDRESS"
tableTagging.SetTag "Amount", "SALARY"
tableTagging.SaveWithTestFilter filter

In this example, the test filter based on the property "id" is obtained. Later this filter is used in tagging macro commands to ensure that the tagging will only affect the audit tests that match the filter.