@bneporadny
Just a note, that in the multi-tenant environment that is Canvas, most institutions would not be able to depend on those incremental IDs, unless they have their own dedicated shard. You see this in any global id, which the first numbers preceding the local canvas_id, ex. 120000001234567, where 12 is the shard, and new record is being creating against the shard, which means the next value may be created and used by your shard neighbors and may not be in your system.
ie. You cannot depend on 1234567 following 1234566, unless you are the only tenant on that shard. You'd have to talk to Canvas support or engineers to find out. The smaller your institution the more likely you are sharing.
Additionally if you were to count and track these, course resets (which delete and create a new course) would have to be tracked.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.