startingNumber ignored?

I appear to be having the same issue as described in this post from 2021.
PUT
{
"type": "TEXT_NUMBER",
"systemColumnType": "AUTO_NUMBER",
"index": 1,
"title": "Auto",
"autoNumberFormat": {
"prefix": "10",
"fill": "000",
"startingNumber": 1,
"suffix": ""
}
}
is returning
{ "message": "SUCCESS", "resultCode": 0, "version": 245, "result": { "id": 975110288920452, "index": 1, "systemColumnType": "AUTO_NUMBER", "title": "Auto", "type": "TEXT_NUMBER", "validation": false, "width": 115, "autoNumberFormat": { "prefix": "10", "fill": "000", "suffix": "" } }}
The starting number isn't referenced when I use the GET operation either.
Any advice or solutions would be warmly welcomed!
Answers
-
Hi @JodyRakow!
Iโm not an expert in the API myself, but after testing your code using Postman, it seems to work just fine. Due to the nature of the auto-number column, changing the column properties, such as startingNumber, wonโt affect values that have already been generated. That new starting number will only apply to rows created after the change, and you should see it reflected in the column properties as well.
If your expectation is that all rows start from that new number, then yes, you might need to recreate the column, as explained in this Help Center article:
๐ Reset the Auto-Number ColumnAs for the second part of your question, where the
startingNumber
doesnโt appear in the response from theGET /columns
call, this does seem unexpected to me based on whatโs documented. For further clarity, Iโd recommend reaching out to Smartsheet Support directly so they can help investigate this through a private channel:
๐ Contact SupportHope this helps!
Cheers,
Isaac.Need more information? ๐ |Help and Learning Center
ใใใซใกใฏ (Konnichiwa), Hallo, Hola, Bonjour, Olรก, Ciao! ๐ |Global Discussions