Vitari Connect Visma Business – Additional Information

“Advanced Filters (JSON)” Parameter

The following Connector “List” Methods have an optional Advanced Filters (JSON) parameter:

  • List Articles
  • List Article Prices
  • List Article Stock Quantities
  • List Customers
  • List Customers Addresses
  • List Orders
  • List Suppliers

This parameter lets you apply more complex filters than the separate filter fields can express, such as several values for one field, OR conditions and grouped conditions.

When the parameter has a value set, it replaces every other filter field available. Leave it empty to use the standard filter fields.

Format

The value is a JSON array of filter rows.

Vitari applies the rows in order:

[ {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "101"}, {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "123", "Operator": "OR"} ]

Each row can contain the following attributes:

AttributeRequiredPurpose
FieldYesThe Visma Business field to filter on, as Vitari Connect names it in the XML, e.g.:
* ProductNo
* CustomerNo
* OrderNo
* ChangedDate
CompareYesOne of the following:
* EqualTo
* NotEqualTo
* GreaterThan
* GreaterThanOrEqualTo
* LessThan
* LessThanOrEqualTo
* IntegerBitON
* IntegerBitOFF
Value1YesThe value to compare with.

Dates must be in this format:
dd.mm.yyyy
OperatorOn every row after the firstAND or OR: how the row joins the row before it.
The first row doesn’t require this.
LeftParenthesisNoSet to "1" on a row that opens a bracket.
RightParenthesisNoSet to "1" on a row that closes a bracket.

Rules

  • Every row after the first needs an Operator, AND or OR. Without one, the step fails before calling Vitari Connect, with a message naming the row.
  • Brackets take "1", not "(" or ")". Vitari Connect rejects anything else with MessageId 99, “RightParenthesis , is wrongly formatted”.
  • Rows for the same field must be next to each other. For example, ProductNo, ProductNo, WareHouseNo is fine, but ProductNo, WareHouseNo, ProductNo is not. The step fails with a message naming the row to move.
  • AND is applied before OR, as in SQL, unless you add brackets.
  • An empty value or [] counts as not set, so the normal filter fields are used.

Examples

One of several values: Products 101 or 123:

[ {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "101"}, {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "123", "Operator": "OR"} ]

A range: Customers 10000 to 10003:

[ {"Field": "CustomerNo", "Compare": "GreaterThanOrEqualTo", "Value1": "10000"}, {"Field": "CustomerNo", "Compare": "LessThanOrEqualTo", "Value1": "10003", "Operator": "AND"} ]

Grouped conditions: Stock in warehouse 2 for product 123 or 10100, equivalent to WareHouseNo = 2 AND (ProductNo = 123 OR ProductNo = 10100):

[ {"Field": "WareHouseNo", "Compare": "EqualTo", "Value1": "2"}, {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "123", "Operator": "AND", "LeftParenthesis": "1"}, {"Field": "ProductNo", "Compare": "EqualTo", "Value1": "10100", "Operator": "OR", "RightParenthesis": "1"} ]

Without the LeftParenthesis and RightParenthesis attributes, the same filter is equivalent to (WareHouseNo = 2 AND ProductNo = 123) OR ProductNo = 10100.

Changed since a date: Articles changed on or after October 1, 2026:

[ {"Field": "ChangedDate", "Compare": "GreaterThanOrEqualTo", "Value1": "01.10.2026"} ]

Errors

MessageCause
Advanced Filters (JSON) is not valid JSON: …The value isn’t valid JSON. Check the quotes and brackets.
Advanced Filters (JSON) must be a JSON array of filter rows.The value is a single object, not an array. Wrap it in [ ].
Advanced Filters (JSON) row N needs Field, Compare and Value1.Row N is missing one of the required attributes.
Advanced Filters (JSON) row N needs an Operator, AND or OR.Row N is after the first and has no Operator. Add "Operator": "AND" or "Operator": "OR".
Advanced Filters (JSON) row N: rows for "X" must be next to each other. …Rows for field X are split up by another field. Move row N beside the earlier X rows.
Vitari MessageId 98An Operator other than AND or OR.
Vitari MessageId 99, “… is wrongly formatted”A bracket attribute has a value other than "1".