How to decrease the quantity of a catalog item after each Request is being submitted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 04:26 AM
The requirement is to reduce the stock by the number of quantity of requested.
For example,
there's iPhone 15 catalog item and I order 1 quantity of it. The backend value of stock for this catalog item is 14. Now, after the REQ is submitted, the stock number should come down to 13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 04:37 AM
Can you let us know In which table "Stock" field resides ? in a stockroom Table ?
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 04:41 AM
Hi @Vishal Birajdar : I was thinking if we could create a read-only variable with the catalog item and reduce the number from the variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2023 05:18 AM
but there should be source of truth from database where we will store number of stocked item know.
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates