Catalog Builder Approval stage: "Generate Catalog Builder URL"

mike555
Tera Expert

The ServiceNow YouTube video "Catalog Builder | Defining and configuring a pre-publish subflow".

At time 2:47 of the video (https://www.youtube.com/watch?v=Vtv8LPnfwbM&t=167s) there is a "Generate Catalog Builder URL" option.

This is a customisation, not included in SeviceNow.

Is there any information on how I can add this myself?

1 ACCEPTED SOLUTION

Managed to build out and get the full approval mechanism working. There's some issues with the video, so I've written up my full solution in this main thread about the Catalog Builder Approval Subflow Mechanism.

 

What I wanted to also add here is that I added an additional output from this action to also generate a URL for the catalog record itself. I realized in my position as an Approver, I don't just want to look at the Preview of the submitted catalog item, but I also want to check out the fulfillment steps (if they're using a step-through vs. pre-set flow). Unfortunately, the catalog builder wizard view isn't available when it's been submitted, so my solution just goes to the old-school Maintain Items record in the main platform.

 

Here's the enhanced script I used:

 

(function execute(inputs, outputs) {
var instance = gs.getProperty('instance_name');
outputs.cat_preview_url = 'https://' + instance + '.service-now.com/now/build/catalog/preview/' + inputs.cat_item_sysid + '/params/ui-interface/Portal/preview-portal/swp/hide-open-in-new-tab/true';
outputs.cat_builder_url = 'https://' + instance + '.service-now.com/now/nav/ui/classic/params/target/sc_cat_item.do%3Fsys_id%3D' + inputs.cat_item_sysid
})(inputs, outputs);

 

My script outputs are cat_preview_url, and cat_builder_url. You'll need to create the additional action Output for this second URL.

 

View solution in original post

6 REPLIES 6

Managed to build out and get the full approval mechanism working. There's some issues with the video, so I've written up my full solution in this main thread about the Catalog Builder Approval Subflow Mechanism.

 

What I wanted to also add here is that I added an additional output from this action to also generate a URL for the catalog record itself. I realized in my position as an Approver, I don't just want to look at the Preview of the submitted catalog item, but I also want to check out the fulfillment steps (if they're using a step-through vs. pre-set flow). Unfortunately, the catalog builder wizard view isn't available when it's been submitted, so my solution just goes to the old-school Maintain Items record in the main platform.

 

Here's the enhanced script I used:

 

(function execute(inputs, outputs) {
var instance = gs.getProperty('instance_name');
outputs.cat_preview_url = 'https://' + instance + '.service-now.com/now/build/catalog/preview/' + inputs.cat_item_sysid + '/params/ui-interface/Portal/preview-portal/swp/hide-open-in-new-tab/true';
outputs.cat_builder_url = 'https://' + instance + '.service-now.com/now/nav/ui/classic/params/target/sc_cat_item.do%3Fsys_id%3D' + inputs.cat_item_sysid
})(inputs, outputs);

 

My script outputs are cat_preview_url, and cat_builder_url. You'll need to create the additional action Output for this second URL.

 

Joseph Landis
Tera Contributor

Anyone in Vancouver yet? A feature was added to Catalog Builder allowing Catalog Builders to cancel the review process detailed above in this prepublish subflow. cancel review.png