Aug 13, 2015 at 2:06 PM

I just used the code for testing and found a little bug in the copyNumberSequence Method. In Line 51 the creation of the new NumberSequenceReference starts with:;
toNumberSequenceReference.NumberSequenceScope = toNumberSequenceScope.RecId;

here it is important to update the NumberSequenceId to the newly created. Otherwise the reference will be still pointing to the old NumberSequence
_toNumberSequenceReference.NumberSequenceId = toNumberSequenceTable.RecId;_
kind regards,