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!
SuiteQL: customer payment query
Hello everyone,
I'm struggling to find a query that returns the information I need.
I'm looking for a query that retrieves all payments from a specific customer where the unapplied amount is greater than 0.
I found the query below but the response is "Invalid search query. Detailed unprocessed description follows. Search error occurred: Field 'unapplied' for record 'transaction' was not found.\n."
SELECT
cp.id AS PaymentID,
cp.trandate AS PaymentDate,
cp.total AS TotalAmount
FROM
transaction cp
WHERE
cp.type = 'CustPymt'
AND cp.voided = 'F'
AND cp.entity = {CustomerID}
AND cp.unappliedamount > 0
ORDER BY
cp.createddate DESC
Does anyone know how I can get the information about the unapplied amount?