Share via


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

  • _scope
    Type: NumberSeqScope Class
    The scope 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.

See Also

Reference

NumberSequenceTable Table