NumberSequenceTable::autoCreate Method
Searches for a NumberSequenceReference record that references a NumberSequenceTablerecord that matches the specified parameters. If no such NumberSequenceReference and NumberSequenceTable records exist, they are created.
Syntax
server public static NumberSequenceReference autoCreate(
ExtendedTypeId _edt,
[NumberSeqScope _scope,
NumberSequenceCode _code,
NoYes _forceManualToNo,
NumberSequenceFormat _format])
Run On
Server
Parameters
- _edt
Type: ExtendedTypeId Extended Data Type
The ExtendedTypeId of the data type for which to find or create the NumberSequenceReference record.
- _scope
Type: NumberSeqScope Class
The scope for which to find or create the NumberSequenceReference record.
- _code
Type: NumberSequenceCode Extended Data Type
The NumberSequenceCode of the NumberSequenceTable record for which to find or create the NumberSequenceReference record.
- _forceManualToNo
Type: NoYes Enumeration
A Boolean value that specifies whether the NumberSequenceTable.Manual field should be forced to the NoYes::No enumeration value. This parameter is only used if a new NumberSequenceTable record is created by this method.
- _format
Type: NumberSequenceFormat Extended Data Type
The NumberSequenceFormat value to use when you set the NumberSequenceTable.Formatfield. This parameter is only used if a new NumberSequenceTable record is created by the call to this method. If a NumberSequenceTable record is created but no value was specified for the format, the format will be auto generated.
Return Value
Type: NumberSequenceReference Table
The NumberSequenceReference record that was found or created by the call to this method.
Exceptions
Exception | Condition |
---|---|
UpdateConflictNotRecovered | An update conflict was encountered when you are creating the NumberSequenceReference or NumberSequenceTable records and could not be recovered. |
UpdateConflict | An update conflict was encountered when creating the NumberSequenceReference or NumberSequenceTable records. |