2.29 Generated TEI attribute & sequencial number

Hi devs,

The generated ID is a nice feature we were looking for. Thanks!

However now I am wondering. In the user guide it specifies:

                        "Sequential segments will be replaced by a number, based on a counting value on the server."

How do I do to find this value on the server? Through API or through PqSQL?

We want to migrate data from a legacy system that already have sequential number.

So once migrated, dhis2 tracker should start from the last value migrated and not “1”.