Is there a way to bulk publish items to the Service Catalog?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2022 12:00 PM
Good afternoon,
Is there a way to publish multiple Vendor Catalog Items to the Service Catalog simultaneously?
I am transferring 10k+ hardware models from our old asset tracking system to HAM. I have used import sets to create both the Hardware Models and the Vendor Catalog Items for all 10K+ items. However, in order for any of these lines to appear in the Service Catalog, I have to first click the "Publish to Hardware Catalog" related link on each item. Is there a way to do all 10k+ at once? They are all getting published to the same Hardware Category.
Even if there is not a solution for all 10k at once, any tips on how to speed up the process would be greatly appreciated. Thank you!
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2022 01:02 PM
see if this link helps:
https://community.servicenow.com/community?id=community_question&sys_id=8da64365db1cdbc01dcaf3231f961999

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2022 02:53 PM
You'd have to script it, model after the logic in the publish_to_product_catalog UI Page.
//Script would look something like this
var sc_category = ''; //the catalog category
var type = 'model';
var catalog = 'hardware';
var gr = new GlideRecord('cmdb_model');
gr.addQuery(); //limit to the models you want to do
gr.query();
while(gr.next()){
gr.product_catalog_item = (new ProductCatalogUtils()).createProductCatalog(gr, sc_category, type, catalog);
gr.update();
}