- My View
I like to populate the incident sys_id to a record producer on_load script when using the UI action from the incident form.
My UI action adds the sys_id to the catalog URL like this:
var url = "catalog_home.do?sysparm_view=catalog_service_catalog_europe&sys_myparm=" url += current.sys_id; action.setRedirectURL(url);
The specified catalog open and the URL has the sys_id. So far, so good.
But when clicking now on an item, the sys_myparm parameter is gone. Why?
When I started with this idea, the (build in?) UI action 'create request' was different:
var url = "catalog_home.do?sysparm_view=catalog_service_catalog_europe&sysparm_processing_hint=setfield:request.parent=" url += current.sys_id;
It adds a parameter called sysparm_processing_hint. This one is still part of the URL on the record producer page. Why not sys_myparm also??
Thanks for your help!
Trete unserer neuen deutschsprachigen Facebook-Gruppe bei: https://www.facebook.com/groups/servicenow.de/
This is because one you click on item URL get changed.
Try directly opening Catalog item by specifying catalog item sys id in ur URL i.e. hardcoded if it is only one catalog item.
but your hint doesnt help. We want to go the way via catalog. The plan is as follow:
User send a mail to SN which creates an incident, then support guy decides it is a request. He clicks on the UI action -> Calatog open and offers serveral items. Supporter selected the right one and record producer form opens.
See what happens is the URL will for sure get changed once you click on the catalog item list provided. So in this case you will have to edit catalog_home UI page. So that you can accommodate whatever you want.
In this UI page you will have to add extra parameter and pass it along the URL.
This will affect whole catalog page. But you will have to handle it in this way.