DirParty::constructFromPartyNumber Method [AX 2012]

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

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 constructFromPartyNumber(
            DirPartyNumber _dirPartyNumber, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static DirParty constructFromPartyNumber(
            DirPartyNumber _dirPartyNumber, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static DirParty constructFromPartyNumber(
            DirPartyNumber _dirPartyNumber, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

  Microsoft Dynamics AX 2012 (FPK)
          server public static DirParty constructFromPartyNumber(
            DirPartyNumber _dirPartyNumber, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

  Microsoft Dynamics AX 2012 (SYS)
          server public static DirParty constructFromPartyNumber(
            DirPartyNumber _dirPartyNumber, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

Run On

Server

Parameters

_dirPartyNumber
Type: DirPartyNumber Extended Data Type
A DirPartyNumber 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.
_partyType
Type: DirPartyType Enumeration
_initializeAddressInfo
Type: boolean
_initializeContactInfo
Type: boolean

Return Value

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