System views are pre-defined query filters for objects, and are used in Sage Intacct to display data in ways that meet the needs of most users. Each time you execute a view, the response includes all data that matches the filtering and sorting options set up in the view.
System views cannot be changed, but users can use the UI to create user views based on them. For example, a user could create a user view that uses the same filter as a system view but returns different fields.
Use the view service to execute a system view and get the data that matches the view's filter and sort options.
Note: Queries for system views must use a very specific set of filters
in the request body, as shown in this example:
object: system-view
fields:
- key
- id
- name
- description
- query
filters:
- $eq:
object: expenses/electronic-receipt
- $eq:
contexts: __default
- $eq:
id: getAllVendors
System view query rules:
$eq
.$eq
operation on the contexts
field, and can only be a single context. If you need to query for more than one context you must execute 2 separate queries.id
is not provided the query will return all system views in a specific context.id
is unique across all contexts, the context
filter is not required.Returns all system views for an object or a specified system view.
name required | string The name of an object or system view.
Example: name=accounts-payable/vendor::systemVendorFW1 |
OK
Bad Request
{- "ia::result": {
- "contexts": [
- "__default"
], - "description": "IA.ALL_ACTIVE_EMPLOYEE_EXPENSES",
- "id": "systemfw1",
- "key": "expenses/employee-expense::systemfw1",
- "name": "IA.ALL",
- "object": "expenses/employee-expense",
- "query": {
- "fields": [
- "id",
- "employeeContact.lastName",
- "employeeContact.firstName",
- "createdDate",
- "expenseReportNumber",
- "reimbursement.totalEntered",
- "nonReimbursable.reimbursementTotalEntered",
- "reimbursement.reimbursementCurrency",
- "basePayment.totalEntered",
- "state"
], - "object": "expenses/employee-expense",
- "orderBy": [
- {
- "createdDate": "desc"
}
]
}, - "href": "/objects/core/system-view?name=expenses/employee-expense::systemfw1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}