Compartilhar via


PurchTableVersion::findLatest Method

Finds the most recent version of a purchase order.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          client server public static PurchTableVersion findLatest(
            PurchId _purchId, 
            DataAreaId _purchIdDateAreaId, 
           [boolean _update, 
            boolean _areProformaVersionsAllowed])

  Microsoft Dynamics AX 2012 R2 (SYS)
          client server public static PurchTableVersion findLatest(
            PurchId _purchId, 
            DataAreaId _purchIdDateAreaId, 
           [boolean _update])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          client server public static PurchTableVersion findLatest(
            PurchId _purchId, 
            DataAreaId _purchIdDateAreaId, 
           [boolean _update])

  Microsoft Dynamics AX 2012 (FPK)
          client server public static PurchTableVersion findLatest(
            PurchId _purchId, 
            DataAreaId _purchIdDateAreaId, 
           [boolean _update])

  Microsoft Dynamics AX 2012 (SYS)
          client server public static PurchTableVersion findLatest(
            PurchId _purchId, 
            DataAreaId _purchIdDateAreaId, 
           [boolean _update])

Run On

Called

Parameters

  • _update
    Type: boolean
    A Boolean value that indicates whether to select for update; optional.
  • _areProformaVersionsAllowed
    Type: boolean
    A Boolean value that indicates whether to also retrieve proforma versions; optional. Defaults to false.

Return Value

Type: PurchTableVersion Table
The most recent version of the purchase order.

See Also

Reference

PurchTableVersion Table