Show / Hide Table of Contents

    API - Item UOM

    This page supports access to Item Unit of Measure, with additional support for extra values.

    Object Definition

    Object TypePage
    Object ID70314205
    Object NameQWESR API - Item UOM
    Source TableItem Unit of Measure

    API Definition

    APIPublishersmartApps
    APIGroupspider
    APIVersionv1.0
    EntitySetNameitemUnitsOfMeasure
    EntityNameitemUnitOfMeasure

    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 it 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 v27.0

    Back to top Copyright © 2020 SmartApps
    Generated by DocFX