Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : How can I query the audit trails?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 How can I query the audit trails? 
 Author   Message 
  rireland 
  
 Group: Members 
 Posts: 1 
 Joined: 2006-09-16 
 Profile
 Posted : 2006-09-16 15:33:52

I have 5 distinct copmanies in QuickBooks; I want to merge the audit trails from each database into one table, and store it seperate from the databases (auditor's request).  Is there an audit trail object?

Rick

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-09-17 10:25:42

You can extract all the transactions for the day by running the TxnDetailByAccount stored procedure report:

sp_report TxnDetailByAccount show Text, Blank, TxnType, Date, RefNumber,
Name, Memo, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance
parameters DateMacro = 'Today'

at the end of the day, or use the:

parameters DateMacro = 'Yesterday'

option for yesterday's transactions.

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-11-17 09:06:32

You can also look at our Transaction table, which is good approximate of a GLTran file:

SELECT * FROM Transaction where TxnDate >= {d '2007-12-01'} and TxnDate <= {d '2007-12-31'}

 

  Top 
  Alex E 
  
 Group: Members 
 Posts: 16 
 Joined: 2007-01-31 
 Profile
 Posted : 2008-01-29 09:32:58

Hello - I want to select for customers with transactions edited since a last rundatetime paramter, and then add or update the related transactions to an external database.  Does the most recent version of QODBC give query access to the table(s) used in the Audit Trail report?  In particular, I would like to select for all transactions where the column labeled Entered/Last Modified, which I think corresponds to the the underlying column ModifiedTime, is greater than the last rundatetime for my update process.

I am currently running version 7.1 of the QODBC driver (read-write version).  The table list doesn't seem to include anything that looks like an Audit Trail object or the ModifiedTime column.   Do the more recent versions allow access to this table or this data?  Thank you for your help.

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-01-29 18:07:12

The Transaction table has a TimeModified column you can use or you can use the ModifiedTime column in the report like this:

sp_report TxnDetailByAccount show ModifiedTime, Text, Blank, TxnType, Date, RefNumber,
Name, Memo, ClearedStatus, SplitAccount, Debit, Credit, RunningBalance
parameters DateMacro = 'Today'

See also: How do I run a CustomTxnDetail Report? 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to