/
How to Find Set of Quotes Containing Given Products
How to Find Set of Quotes Containing Given Products
Get all of the quotes (with any necessary filters):
qs = api.find("Q", i, step, null, Filter.equal("quoteStatus", quoteStatus), Filter.equal("workflowStatus", workflowStatus), Filter.equal("customerId", customerId))
- Get the SKU or list of SKUs that you want to filter on.
Iterate through each line item in each quote. Within each iteration, loop through the list of SKUs and compare it to the quote line item's SKU:
def quotes = [] if (skus) { for (q in qs) { for (li in q.lineItems) { if (skus.contains(li.sku)) { quotes.add(q) break } } } }
, multiple selections available,
Related content
Quote Product Filter Logics
Quote Product Filter Logics
More like this
Quote Product Filter Logics
Quote Product Filter Logics
More like this
Use Product Recommendations in Quoting
Use Product Recommendations in Quoting
More like this
How to Create a Quote from a Logic
How to Create a Quote from a Logic
More like this
Searching for Relevant Price Records
Searching for Relevant Price Records
More like this
How to Add Inputs to Product Selector
How to Add Inputs to Product Selector
Read with this
Found an issue in documentation? Write to us.