Somewhere, someplace ... someone must have a solut...
# suitescript
d
Somewhere, someplace ... someone must have a solution to determining when a Transaction is
Closed
in NetSuite (ideally server-side).
s
Could you be more specific about the problem?
n
Have you tried checking the lines of the transactions if they are closed?
s
Can you not just read the Status in an After Submit UE?
d
Clicking in the
Close
button on a transaction does raise ANY events at all. Its silent. No Event to hook up to.
Best solution so far is to use the BEFORELOAD to check the Close status.
However, there's no real solution to capture on the server side.
So, if an integration closes a transaction, or a map/reduce or CSV import closes transactions, there's no way to know. Unless we implement a Map/Reduce (every 15min) that look for any transactions who have been updated in the last 15mins that is now closed.
s
Yeah, sorry I see what you mean.
Don't like timed ones as they are hard to recover from if for some reason an iteration doesn't run. I think I might have a UE script which copies the current status to a custom field on Before Load. Then make the scheduled script look for transactions where that custom field != actual status.