in the creation of the sequence, there is a 'step' property that can be used to control the next number in the sequence (see https://docs.reltio.com/en/developer-resources/system-administration-apis/system-administration-apis-at-a-glance/record-id-generators-api). However, this is not dynamic. If you need to sometimes skip, one alternative would be to write a wrapper API that would call the generator x times and return the last value. Or maybe have several generators, each with different 'step' parameters. But you would need to do something (start values?) to ensure that they don't overlap.
Original Message:
Sent: 12-12-2024 13:01
From: Utsa Das
Subject: Next Reserved Value for Sequencer is not changing
hi @Gino Fortunato,
Thanks for your reply.Right now the API https://{serverURL}/generators/{generator_name}/generate will increament the value by 1 for each time call.
Will you be kind to help if we can control the increment of the generator dynamically ,let's say if we want to pass parameter based on which the generator will be incremented to set his next value ?
------------------------------
Utsa Das
Novartis
Original Message:
Sent: 12-09-2024 12:06
From: Gino Fortunato
Subject: Next Reserved Value for Sequencer is not changing
Hi Utsa,
The next values API tells you want the next value called will be. However, since it doesn't actually 'get' the value, it doesn't increment the generator. Please see https://docs.reltio.com/en/developer-resources/system-administration-apis/system-administration-apis-at-a-glance/record-id-generators-api/next-reserved-value
To increment the generator, you need to use GET https://{serverURL}/generators/{generator_name}/generate
Is this helpful?
------------------------------
Gino Fortunato
Senior Solution Engineer
Reltio
Original Message:
Sent: 12-09-2024 07:42
From: Utsa Das
Subject: Next Reserved Value for Sequencer is not changing
HI Team ,
We have created a Sequencer in the environment and using the next reserved value from the same we are trying to create a column value which will be unique for different entity through external process :-
API :- <ServerURL>/generators/<Sequence_Name>/nextReservedValue
But after using once the sequence for one entity ,when we are again calling the API ,the next value is not changing .
Please let us know how to change the next reserved value so that we can generate different value each time we call the API.
Please note ,currently the sequencer is tagged to one of the columns in L3.
------------------------------
Utsa Das
Novartis
------------------------------