Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Script to re-order transaction line items
Re-ordering existing transaction line items is not currently possible in the UI so I'm considering scripting it. (the goal being to drive output in a quote/estimate)
I suppose it would be possible to automate the manual task of re-keying all items to get your desired order:
[LIST]
[*]Read all lines into an array
[*]Sort array by desired method (perhaps identified elsewhere)
[*]Delete all lines
[*]Add all lines in order
[/LIST]
This seams a bit much... it also increases maintenance were we to simply add/remove column fields in the future.
I notice via ODBC "Transaction_Line_ID" and "Transaction_Order" which appear to correlate with the order in the UI. It would be great if we could set this value via script, though I suppose this is not possible.