DirParty::constructFromCommon Method [AX 2012]

Creates a new instance of the DirParty class from an address book entity that is represented by the _common 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 constructFromCommon(
            Common _common, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 R2 (SYS)
          server public static DirParty constructFromCommon(
            Common _common, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType, 
            boolean _initializeAddressInfo, 
            boolean _initializeContactInfo])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          server public static DirParty constructFromCommon(
            Common _common, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

  Microsoft Dynamics AX 2012 (FPK)
          server public static DirParty constructFromCommon(
            Common _common, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

  Microsoft Dynamics AX 2012 (SYS)
          server public static DirParty constructFromCommon(
            Common _common, 
           [TransDateTime _transDateTime, 
            DirPartyType _partyType])

Run On

Server

Parameters

_common
Type: Common Table
The record that represents an address book entity.
_transDateTime
Type: TransDateTime Extended Data Type
The transaction date time.
_partyType
Type: DirPartyType Enumeration
_initializeAddressInfo
Type: boolean
_initializeContactInfo
Type: boolean

Return Value

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