I want to find if specific item is available in sp...
# ask-stanley-ai
s
I want to find if specific item is available in specific location using suitescript.
c
AI generated answer (using internal Slack threads):
Based on the conversations, it is possible to find if a specific item is available in a specific location using SuiteScript. You can achieve this by running a search or query on a map/reduce or scheduled script. If you only have a single item, you may be able to use the N/record module instead of a search/query. Here is a sample code snippet that was shared in the conversations:
Copy code
javascript
let searchObj = search.load({
    id: savedSearchId,
    type: search.Type.INVENTORY_BALANCE
});
In this code,
savedSearchId
is the ID of the saved search that you want to load. The
search.Type.INVENTORY_BALANCE
is used to specify the type of the search. Please note that the
Last Quantity Available Change
column is related to the quantity of an item that is updated at a specific location. The search related APIs only have a single body level one while the query exposes it at the location level. ****** 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.838471532
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833794236
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823021352
Please provide your feedback on this answer.