Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
NSC | SuiteQL: How to Fetch a Transaction from a Specific Date
Scenario:
A NetSuite user wants to design a SuiteQL query that effectively filters Vendor Credit transactions occurring on a specific date, ensuring precise data retrieval for financial analysis.
Solution:
The following query can be ran to extract Vendor Credits from a specific date.
NOTE: Replace the first parameter on the TO_DATE
function with the actual date needed and the second parameter with the date format that is used by your NetSuite Account.
SELECT id as internalID, tranid, trandate as transactionDate FROM transaction WHERE trandate=TO_DATE('MM/DD/YYYY', 'mm/dd/yyyy') AND type='VendCred'
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see