SuiteQL to list items on an Opportunity.
# ask-stanley-ai
a
SuiteQL to list items on an Opportunity.
c
AI generated answer (using internal Slack threads):
To list items on an Opportunity using SuiteQL, you would need to join the
transaction
table with the
transactionline
table. The
transaction
table contains the Opportunity records, and the
transactionline
table contains the line items associated with each transaction. Here is a sample SuiteQL query:
Copy code
sql
SELECT T.id, T.tranid, TL.item 
FROM Transaction T
JOIN TransactionLine TL ON T.id = TL.transaction 
WHERE T.type = 'Opprtnty'
This query will return the ID and transaction ID of the Opportunity, along with the item ID for each line item on the Opportunity. Please note that the account you're using will need to have permissions on: Transactions > Opportunity. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826049924
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818359494
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.81274426
Please provide your feedback on this answer.