DirParty::constructFromPartyRecId Method [AX 2012]

Creates a new instance of the DirParty class by using the entity that corresponds to the specified DirPartyRecId object.

NoteNote

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


  Microsoft Dynamics AX 2012 R3
          server public static DirParty constructFromPartyRecId(
            DirPartyRecId _dirPartyRecId, 
           [TransDateTime _transDateTime, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static DirParty constructFromPartyRecId(
            DirPartyRecId _dirPartyRecId, 
           [TransDateTime _transDateTime, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static DirParty constructFromPartyRecId(DirPartyRecId _dirPartyRecId, [TransDateTime _transDateTime])

  Microsoft Dynamics AX 2012 (FPK)
          server public static DirParty constructFromPartyRecId(DirPartyRecId _dirPartyRecId, [TransDateTime _transDateTime])

  Microsoft Dynamics AX 2012 (SYS)
          server public static DirParty constructFromPartyRecId(DirPartyRecId _dirPartyRecId, [TransDateTime _transDateTime])

Run On

Server

Parameters

_dirPartyRecId
Type: DirPartyRecId Extended Data Type
A DirPartyRecId object that represents an address book entity.
_transDateTime
Type: TransDateTime Extended Data Type
The date and time for which the new instance of the DirParty class should be created; optional.
_initializeAddressInfo
Type: boolean
_initializeContactInfo
Type: boolean

Return Value

Type: DirParty Class
The newly created instance of the DirParty class.
Show: