ITSM forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! checking if a record exists using get()

Hello, I wrote a script where I can check if a record exists with the following condition and it is not able to find. var methods = new GlideRecord("incident"); var returnValue = methods.get("caller_id", "Bud Richman"); gs.addInfoMessage("the record ...

How to enable virtual agent support for particular catalog item

Hi I need to enable virtual agent for particular item so that it ask question for particular form .If you see below workflow screenshot for order item conversation there is decision whether  there is va support or not??.       (function execute(...

find_real_file.png find_real_file.png
manish64 by Giga Guru
  • 2725 Views
  • 6 replies
  • 11 helpfuls

Resolved! How to display a field of type Image on a widget?

Hello, I have a field of type 'Image' which can take an image. I want to display this image on a widget I have. I tried showing it on the widget but it gives me a sys_id instead. How can I show it ? Thanks

background script to close the ritm?

please someone provide me the background script to close only the targeted RITM records. not all in sc_req_item table/ sc_request table i will have a few RITM record numbers. through background script i have to close only given RITM and REQ, not for ...

lakng by Tera Contributor
  • 4873 Views
  • 8 replies
  • 11 helpfuls

Resolved! Custom Related list - Scripted relationship

Hi, We are trying to build custom related list for Problem Management. We need to display Incident outages under problem for all related Incident to the current problem. Custom field was added cmdb_ci_outage table to refer related Incident. Lets say ...

find_real_file.png

Resolved! Cloning best practices and use cases

I know that the cloning requirements varies from org. to org. But I want to listen from you how/when you are making use of cloning. Best practices on this topic. and especially before an upgrade (DEV), I think its good to clone from PROD. Your though...

Suggy by Giga Sage
  • 7536 Views
  • 2 replies
  • 4 helpfuls

Resolved! Matching and replacing a part of a string..

This is my code: var gr = new GlideRecord('kb_knowledge'); gr.addQuery('number','KB0081186'); gr.query();while (gr.next()){ gr.u_level_1= gr.u_level_1.replace("old", "new"); //or //gr.u_level_1= gr.u_level_1.replace(/old/, "new"); //need to know the ...

Opening new Agent Workspace Tab

Hi, we have created a custom page mimicking Service Catalog, and currently are opening it from UI Action 'Create Request' via the "openUrl(...) + top.window.open(...)" function in a new browser tab. We would like it to behave on the Agent Workspace s...

find_real_file.png
PavelP by Mega Sage
  • 2705 Views
  • 8 replies
  • 2 helpfuls