API - Item UOM
This page supports access to Item Unit of Measure, with additional support for extra values.
Object Definition
Object Type | Page |
Object ID | 70314205 |
Object Name | QWESR API - Item UOM |
Source Table | Item Unit of Measure |
API Definition
APIPublisher | smartApps |
APIGroup | spider |
APIVersion | v1.0 |
EntitySetName | itemUnitsOfMeasure |
EntityName | itemUnitOfMeasure |
Events
Name | Description |
---|---|
OnBeforeInsert(Record "Item Unit of Measure"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) | Raised before a record is inserted. |
OnBeforeModify(Record "Item Unit of Measure"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text; List of [Integer]) | Raised before a record is modified. |
OnGetExtraValues(Record "Item Unit of Measure"; Text; Text; Text; Text; Text; Text; Text; Text; Text; Text) | Raised after a record is read from the database. Makes is possible to set the ExtraValues 1..10, to be returned to the client. |
Example
Read
Get a list of all Item Units of Measure.
GET businesscentralPrefix/companies({id})/itemUnitsOfMeasure?$schemaversion=2.0
Get a list of Item Units of Measure for a specific Item.
GET businesscentralPrefix/companies({id})/itemUnitsOfMeasure?$filter=itemNumber eq '{ItemNo}'&$schemaversion=2.0
Create
Create a new Item Unit of Measure.
POST businesscentralPrefix/companies({id})/itemUnitsOfMeasure?$schemaversion=2.0
Content-type: application/json
"itemNumber": "{ItemNo}",
"code": "{UnitOfMeasureCode}"
Controls
Type | Name | Data Type | Read-only |
---|---|---|---|
Field | id | Guid | Yes |
Field | itemNumber | Code[20] | |
Field | code | Code[10] | |
Field | cubage | Decimal | |
Field | height | Decimal | |
Field | length | Decimal | |
Field | qtyRoundingPrecision | Decimal | |
Field | qtyPerUnitOfMeasure | Decimal | |
Field | weight | Decimal | |
Field | width | Decimal | |
Field | lastModifiedDateTime | DateTime | Yes |
Field | extraValue1 | Text | |
Field | extraValue2 | Text | |
Field | extraValue3 | Text | |
Field | extraValue4 | Text | |
Field | extraValue5 | Text | |
Field | extraValue6 | Text | |
Field | extraValue7 | Text | |
Field | extraValue8 | Text | |
Field | extraValue9 | Text | |
Field | extraValue10 | Text |
This documentation is generated from Spider v23.2.164682.0