Hi, can anyone guide me on what is the most approp...
# suitecommerce
s
Hi, can anyone guide me on what is the most appropriate way to get the cart id in webstore as shown in screenshot attached (from LiveOrder.Model's attributes)? Is there an available method in Extensibility API or the Commerce API for getting cart id or do I need to extract it from the url?
c
Here's how I get it:
Copy code
search.create({
	type: "customer",
	filters: [["internalid", "equalto", <cust internal id goes here>]],
	columns: [
		search.createColumn({
			name: "cartid",
			join: "shoppingCart"
		})
	]
});
👍 1
s
Interesting! This can work. Thank you.
👍🏻 1