How to exclude all order guides from Service Operation Workspace

Sandeep D V
Tera Contributor

We have a requirement to exclude all order guides from the Service Operations Workspace.

Currently, the out-of-the-box functionality displays both catalog items and order guides when we click on the 'Create Request' UI action on the Interaction form in the Service Operations Workspace. However, our requirement is to display only catalog items, excluding order guides, in the Service Operations Workspace.

How can we achieve this customization?

UI Action Script:

function onClick() {
    var result = g_form.submit('sysverb_ws_save');
    if (!result) { // failed form submission
        return;
    }
    result.then(function() {
        var params ={};
        params.sysparm_parent_table = "interaction";
        params.sysparm_parent_sys_id = g_form.getUniqueValue();
        g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
    });
}
19 REPLIES 19

@Sandeep D V 

what URL you got in logs in that user criteria script?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 
I created the user criteria and added to the order guide in both available for and not available for (one at a time), and checked in both SOW and SP view but there is no logs returning for this one.
Used Script:

gs.info('SD');
var url = gs.action.getGlideURI();
gs.info('URL is' + url);
if (url.toString().indexOf('/now/sow/record/') > -1)
    answer = true;
else
    answer = false;






@Sandeep D V 

it means user criteria is not getting evaluated

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 
Yes, That's correct.

@Sandeep D V 

Raise this as a HI ticket and let ServiceNow investigate.

Did you check if that user criteria gets evaluated when person opens portal and sees the order guide?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader