Is there any way to get a transaction's `version` ...
# suitescript
d
Is there any way to get a transaction's
version
number (# times saved) in a script? Would be easier than incrementing a custom field every save.
version
isn't in the Records Catalog, only in the transaction page's XML... 😕
s
Not sure what's the best way to do this but I'd just add a counter and store it in a field. Increment on every edit or only if any of the fields on the record are changed.
d
yeah... Think I'm resigned to doing this. Cheers for confirming 😑👍
👍 1
s
what about running a SuiteQL query? SELECT version FROM transactionhistory WHERE transaction = 'xxx'
👀 1
👍 1