User views are stored queries on objects that can be used to get a filtered list of objects based on current data at any given time.
Returns a collection with a key, ID, and link for each user view. This operation is mostly for use in testing; use the query service to find user views that meet specific criteria and to specify the properties that you want in the response.
OK
Bad Request
{- "ia::result": [
- {
- "key": "12345",
- "id": "ID123",
- "href": "/objects/<application>/<name>/12345"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": 101,
- "previous": null
}
}
Creates a new user view.
User view to create
name required | string View name | ||||||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||||||||||||||
description | string Description | ||||||||||||||||||||||||||||||||||||
object | string Object | ||||||||||||||||||||||||||||||||||||
category | string or null View category | ||||||||||||||||||||||||||||||||||||
viewVersion | string View Version | ||||||||||||||||||||||||||||||||||||
isPublic | boolean Type of view | ||||||||||||||||||||||||||||||||||||
context | string Context of view | ||||||||||||||||||||||||||||||||||||
object Query Parameters | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object Metadata Parameters | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
|
Created
Bad Request
{- "name": "Inactive vendors",
- "query": {
- "object": "accounts-payable/vendor",
- "fields": [
- "id",
- "name",
- "status",
- "href"
], - "filters": [
- {
- "$eq": {
- "status": "inactive"
}
}, - {
- "$eq": {
- "billingType": "balanceForward"
}
}
], - "filterExpression": "1 and 2",
- "orderBy": [
- {
- "id": "desc"
}
]
}
}
{- "ia::result": {
- "key": "12345",
- "id": "ID123",
- "href": "/objects/<application>/<name>/12345"
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}
Returns detailed information for a specified user view.
key required | string System-assigned key for the user view. Example: 262 |
OK
Bad Request
{- "ia::result": {
- "key": "262",
- "id": "262",
- "name": "Active vendors",
- "description": "Active vendors with open billing items",
- "category": null,
- "owner": {
- "key": "1",
- "id": "Admin",
- "href": "/objects/company-config/user/1"
}, - "object": "accounts-payable/vendor",
- "query": {
- "object": "accounts-payable/vendor",
- "fields": [
- "id",
- "name",
- "status",
- "href"
], - "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$eq": {
- "billingType": "openItem"
}
}
], - "filterExpression": "1 and 2",
- "orderBy": [
- {
- "id": "asc"
}
]
}, - "status": "active",
- "viewVersion": "0",
- "audit": {
- "createdDateTime": "2021-05-16T17:41:55Z",
- "modifiedDateTime": "2021-05-17T17:41:55Z",
- "createdBy": "1",
- "modifiedBy": "1"
}, - "href": "/objects/core/user-view/262"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing user view by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the user view. Example: 262 |
name | string View name | ||||||||||||||||||||||||||||||||||||
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" | ||||||||||||||||||||||||||||||||||||
description | string Description | ||||||||||||||||||||||||||||||||||||
object | string Object | ||||||||||||||||||||||||||||||||||||
category | string or null View category | ||||||||||||||||||||||||||||||||||||
viewVersion | string View Version | ||||||||||||||||||||||||||||||||||||
isPublic | boolean Type of view | ||||||||||||||||||||||||||||||||||||
context | string Context of view | ||||||||||||||||||||||||||||||||||||
object Query Parameters | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object Metadata Parameters | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||
|
OK
Bad Request
{- "name": "string",
- "status": "active",
- "description": "string",
- "object": "string",
- "category": "string",
- "viewVersion": "string",
- "isPublic": true,
- "context": "string",
- "query": {
- "object": "accounts-payable/vendor",
- "fields": [
- "key",
- "id",
- "max:vendor.creditLimit"
], - "filters": [
- {
- "$eq": {
- "status": "active"
}
}, - {
- "$gt": {
- "totalDue": "1000"
}
}, - {
- "$contains": {
- "name": "Acme"
}
}
], - "filterExpression": "(1 and 2) or 3",
- "filterParameters": {
- "asOfDate": "2022-04-01",
- "includeHierarchyFields": false,
- "caseSensitiveComparison": true,
- "includePrivate": false
}, - "orderBy": [
- {
- "totalDue": "asc"
}, - {
- "lastPaymentMadeDate": "desc"
}
], - "start": 1,
- "size": 100
}, - "metadata": {
- "frozenColumnsCount": 0,
- "columns": [
- {
- "id": "string"
}
]
}, - "owner": {
- "key": "string",
- "id": "string"
}
}
{- "ia::result": {
- "key": "12345",
- "id": "ID123",
- "href": "/objects/<application>/<name>/12345"
}, - "ia::meta": {
- "totalCount": 3,
- "totalSuccess": 2,
- "totalError": 1
}
}
Deletes a user view.
key required | string System-assigned key for the user view. Example: 262 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find user views that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}