DirPartyTable::getNewPartyNumber Method
Gets and sets the partyNumber value by using the number sequence.
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
server public static DirPartyNumber getNewPartyNumber([boolean _throwError])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static DirPartyNumber getNewPartyNumber([boolean _throwError])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
client server public static DirPartyNumber getNewPartyNumber([boolean _throwError])
Microsoft Dynamics AX 2012 (FPK)
client server public static DirPartyNumber getNewPartyNumber([boolean _throwError])
Microsoft Dynamics AX 2012 (SYS)
client server public static DirPartyNumber getNewPartyNumber([boolean _throwError])
Run On
Server
Parameters
- _throwError
Type: boolean
A Boolean value that indicates whether to throw an error; optional.
Return Value
Type: DirPartyNumber Extended Data Type
The new partyNumber value.
Exceptions
Exception | Condition |
---|---|
Error | Throw if the number sequence is not created and the throwError value is set. -or- Throw if number sequence is set to manual and the throwError value is set. |