EntityWorkshop

EntityWorkshop

GetNextNumber Overview

Get Next Number is used to generate a unique primary key for a new entity object record. Primary key prefixes are defined when the entity is created and get next number iterates a number starting at 10000000. The resulting generated primary key will look something like this: “ORH-10000000”. The next time GetNextNumber runs for that entity it will iterate to this: “ORH-10000001”.

The GetNextNumber service is needed when you want to insert into the SQL table that is associated with the entity, but do not want to use an Entity Create service. The Create service would auto assign an EntityId, but the SQL statement will not and already needs that number generated in order to insert the string.