Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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?