Publish facility product model to catalog?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2024 10:19 AM
Is it possible to publish a facility model to a catalog the way you can with software and hardware models? Is there a better approach to allowing users to "purchase" in stock assets?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2024 05:13 PM
Hi @Stefan_Garcia ,
Yes, I think it is possible to publish facility products to a catalog in ServiceNow, similar to how software and hardware models are published. The general approach would involve creating a catalog item that represents the facility product and configuring it so users can request these items from the catalog.
I have personally not implemented it but I got the below response via Chat GPT and I think this could help you build the logic-
To publish facility products to a ServiceNow catalog, similar to software and hardware models, you can follow these steps:
1. Create a Facility Product Model
- Navigate to: Product Catalog > Products > Facility Models.
- Create New Model: Enter required details like Name, Manufacturer, Model Number, and save.
2. Create a Catalog Item
- Navigate to: Service Catalog > Catalog Definitions > Maintain Items.
- Create New Item: Fill out the form with Name, Category, Description, Price, and add an image.
- Configure Variables: Add variables to capture specific user information.
3. Link Facility Product Model
- Attach Model: On the catalog item form, select the facility product model created earlier in the Model field.
4. Publish the Catalog Item
- Activate: Set the catalog item to active.
- Set Visibility: Configure Available For and Not Available For lists to control who can see the item.
- Save and Publish: Make the item available to users.
5. Manage Requests and Inventory
- Workflows: Configure workflows or approval processes for the catalog item.
- Inventory Management: Ensure inventory is tracked and managed properly.
Example Script for Inventory Management
A business rule can be used to update inventory when a request is submitted:
// Business Rule to update inventory count
(function executeRule(current, previous /*null when async*/) {
var gr = new GlideRecord('facility_model_table');
if (gr.get(current.model)) {
gr.quantity -= 1; // Decrease the quantity by 1
gr.update();
}
})(current, previous);
Summary
By creating facility product models, linking them to catalog items, and publishing these items, users can request facility products through the ServiceNow catalog. Proper workflows and inventory management ensure smooth processing and tracking of these requests.
If my response has resolved your query, please consider giving it a thumbs up ‌‌ and marking it as the correct answer‌‌!
Thanks & Regards,
Sanjay Kumar