Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
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?