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.

How to gain new values in workspace service catalog tab

Community Alums
Not applicable

Hi,

 

I have a UI action buttion on the HR case to open new catalog item and populate some data from the HR case to the catalog item. But the data is not updated when I click Ui action button on new HR case untill and unless the tabs of catalog items are closed explicitly.

 

Eg: Once I clicked on button ,it opened a new tab and populated data of HRC1575054 and left the tab opened doing nothing but when I clicked the button on the HRC1575048, it opened the catalog item but with data of previous HR case i.e. HRC1575054. I want each and every time when I click on button it opens new tab with latest HR cas data.

 

I have this code written in the UI action in the workspace:

 

function onClick(g_form) {
var params = {};
g_service_catalog.openCatalogItem('sc_cat_item', 'e288e2fc975c5e94b7b2711e6253af42', '-1', params);
}

 

Please help.

0 REPLIES 0