Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
SuiteQL: Query to Find Deleted Transactions
We are connected to NetSuite via REST API, and using SuiteQL to do some kinds of work.
We found this example query to find deleted transactions:
using a query like this:
SELECTTO_CHAR ( DeletedDate, 'DS TS' ) AS DeletedDate,Type AS RecordType,RecordID,BUILTIN.DF( DeletedBy ) AS DeletedBy,BUILTIN.DF( Context ) AS Context FROM DeletedRecord WHERE ( DeletedDate >= TO_DATE ( TO_CHAR ( SYSDATE, 'YYYY-MM-DD' ), 'YYYY-MM-DD' ) )
But when we try it we get an error message:
What is the correct query syntax for this?
0