Records
- Get Object Definitions
- Query and List Records
- Query and List Records (Legacy)
- Get Record
- Get Record by ID
- Create Record
- Update Record
- Delete Record
- File Type Fields on Custom Objects
- Get Related Records
A record is an instance of a custom or a standard object.
Get Object Definitions
lookup
List all the fields and relationships for the vendor standard object:
List all the fields and relationships for the MCA_attendee custom object:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to list. |
Query and List Records
query
List vendor standard object records:
List MCA_attendee custom object records where the related customer (via R_attendee_customer relationship) owes more than 5,000.
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to query. |
filter | Optional | object | Filter expression to limit the response to only objects that match the expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL). |
select | Required | sequence | The names of the fields that you want included in the response, and an optional aggregate function such as count or sum . Returning all fields is not supported. |
orderby | Optional | object | Provide an order element with a field name and choose an ascending or descending sort order, for example: <order> |
options | Optional | object | Query options:
|
pagesize | Optional | integer | Maximum number of matching objects to return in the response, between 1 and 2000 items (Default: 100 ) |
offset | Optional | integer | Point at which to start indexing into records (Default: 0 ) |
Query and List Records (Legacy)
readByQuery
List vendor standard object records:
List MCA_attendee custom object records:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to query. |
fields | Optional | string | Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value. |
query | Required | string | SQL-like query based on fields on the object. The following operators are supported: < , > , >= , <= , = , like , not like , in , not in , IS NOT NULL , IS NULL , AND , OR . Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli' ). Joins are not supported. |
pagesize | Optional | integer | Custom page size between 1 and 1000 items (Default: 100 ) |
docparid | Optional | string | Used for SODOCUMENT , PODOCUMENT , or INVDOCUMENT records to indicate the document type. You must use this to take advantage of any custom fields on the specified document type. |
Get Record
Read
Get standard object record:
Get custom object record:
Get multiple standard object records:
Get multiple custom object records:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to get. |
keys | Required | string | Comma-separated list of object record keys to get. Standard objects use the RECORDNO otherwise custom objects use the id . Keys must be comma separated, max count of 100 keys. |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
docparid | Optional | string | Used for SODOCUMENT and PODOCUMENT records to indicate the document type. You must use this to take advantage of any custom fields on the specified document type. |
Get Record by ID
readByName
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to get. |
keys | Required | string | Comma-separated list of record IDs or names to get. For custom object use name . This field varies for standard objects. |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|
docparid | Optional | string | Used for SODOCUMENT and PODOCUMENT records to indicate the document type. You must use this to take advantage of any custom fields on the specified document type. |
Create Record
create
Create a standard object record:
Create a custom object record:
Create multiple standard and custom object records:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object type | Required | object[1…100] | Object types to create. Max 100 records. Records of different types can be used. |
Note: See the FAQ for more examples that set relationship values.
Update Record
update
Update a standard object record:
Update a custom object record:
Update multiple standard and custom object records:
Update standard object record to set the value of a to-one relationship to a custom object record:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object type | Required | object[1…100] | Type of object to update. Max 100 records. Records of different types can be used. |
Note: See the FAQ for more examples that set relationship values.
Delete Record
delete
Delete a standard object record:
Delete a custom object record:
Delete multiple standard object records:
Delete multiple custom object records:
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Object type to delete. |
keys | Required | string | Comma-separated list of object record keys to delete. Standard objects use the RECORDNO otherwise custom objects use the id . Keys must be comma separated, max count of 100 keys. |
File Type Fields on Custom Objects
Setting an object to a file type field enables three fields for use on your object.
OBJECT
Parameters
Name | Required | Type | Description |
---|---|---|---|
FIELDNAME_contenttype | Required | string | MIME type of file |
FIELDNAME_filename | Required | string | Filename of file |
FIELDNAME | Required | string | Base64 encoded data of the file |
Get Related Records
This will retrieve records related to one or more records by a given relationship.
Please note this only works on custom objects.
readRelated
Parameters
Name | Required | Type | Description |
---|---|---|---|
object | Required | string | Custom object type to get. |
relation | Required | string | Name of relation to follow from the given keys. |
keys | Required | string | Comma-separated list of custom object record id to get. Keys must be comma separated, max count of 100 keys. |
fields | Optional | string | Comma-separated list of fields on the object to get. To return all fields, omit the element or provide * for the value.For best performance and predictability, limit the number of fields. |
returnFormat | Optional | string | Data format for the response body:
|