RTC SCM aliasId - String or Int?
When you use the SCM command line tool, to run "scm status" or similar, the output (non UUID or JASON) includes an aliasId.
Up until yesterday, I'd only ever seen numbers >1000.
When I parse the output, I treat it as an int.
Yesterday, I came across a case where the id was "0023". I treat it as an INT, so I used "23".
And quickly discovered that as far as asliasId's are concerned "23" != "0023".
So, is the aliasId an int or a String?
Up until yesterday, I'd only ever seen numbers >1000.
When I parse the output, I treat it as an int.
Yesterday, I came across a case where the id was "0023". I treat it as an INT, so I used "23".
And quickly discovered that as far as asliasId's are concerned "23" != "0023".
So, is the aliasId an int or a String?
Accepted answer
Chris,
You shouldn't use aliases when using the scm tool from a script as aliases are temporary and it could be reused, may roll over. The aliases start from 1000 and go up to 9999. I am not sure how you got 0023.
Use uuid's in your script. You can get the uuid of an item as follows: scm -u y <command> <command_args>