Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Create Request UI Action in Agent Workspace

Jet R
Tera Contributor

In HR Agent Workspace, I duplicated the "Create Request" OOB from Incident. 

Is there a way to redirect me to the HR Catalog only? Currently, it's redirecting to the old catalog item (sc_cat_item)

 

Here is the oob workspace script, I need similar for HR Agent Workspace. 

 

JetR_0-1698830025885.png

 

It should be directed to the HR Catalog items only below:

JetR_1-1698830126585.png

 

3 REPLIES 3

Danish Bhairag2
Tera Sage

Hi @Jet R ,

 

Can u try using below code

 

action.setRedirectURL(mention the URL of the catalog item which u want to open);

 

Thanks,

Danish

 

Hi Danish, I need all the catalog items in HR or category= Human Resources not only the 1 catalog item. 

@Jet R ,

 

Ok can u go to the portal & manually apply appropriate filter which give u the correct output. Later copy the url from the top & paste it in the UI action script & check if that works.

 

Thanks,

Danish