How to navigate to interceptor of change form from "Create Change" action of Incident or problem.

venkatesh2565
Mega Expert

Hi All,

I have come across an requirement where I have to navigate to the change interceptor form on clicking or performing an UI action on Incident to "Create Change".

I have already used   below thing UI Action of "Create change" on Incident form.

window.location.href="https://dev41026.service-now.com/nav_to.do?uri=/wizard_view.do%3Fsysparm_wizardAction%3Dsysverb_new%..."

find_real_file.png

thanks all....

Regards,

Venkatesh P

1 ACCEPTED SOLUTION

Gaurav Bajaj
Kilo Sage

HI Venkatesh,



Please try the below UI action method. This works for me but I am wondering whether you need the values from incident/problem to be populated in change request or not.


Just make sure to check the client box, add Onclick method as I have added "Redirect".


find_real_file.png




Please let me know if that helps.


View solution in original post

7 REPLIES 7

gdd
Giga Expert

try below in ui action code, make it server side



action.setRedirectURL('/wizard_view.do?sys_target=change_request&sysparm_stack=change_request_list.do&sysparm_wizardAction=sysverb_new&sysparm_parent=8db4a378c611227401b96457a060e0f4');


Gaurav Bajaj
Kilo Sage

HI Venkatesh,



Please try the below UI action method. This works for me but I am wondering whether you need the values from incident/problem to be populated in change request or not.


Just make sure to check the client box, add Onclick method as I have added "Redirect".


find_real_file.png




Please let me know if that helps.


Hi Gaurav Did you find out how to get the values from the incident to the change? As per your question I need the values from incident to be populated in change request. I am using the same ui action and url starting an interceptor as you posted. I appreciate your help thanks Elias


HI Elias,



I am afraid that not feasible with this solution.


The only thing that could persist is the session. You can try adding   through glideajax In server script(   gs.getSession.putClienData(name,value). )


and then retrieve it in on load script and then populate the change form with the session values.



I haven't tried it though but its worth a shot.



Thanks


Gaurav