Using specific form view when creating new change record

Rairai31
Giga Guru

Hi,

 

I wanted to make my new form view (uat_change) when creating a change. I already created View rules and works fine after saving the record. But when creating new change records, view is on Default. 

I have tried adding this to the target URL on the Interceptor but it is not working.

change_request.do?sys_id=-1&sysparm_query=type=uat_change&sysparm_view=uat_change&sysparm_view_forced=true

 I really appreciate all your responses. Thank you

7 REPLIES 7

Bhimashankar H
Mega Sage

Hi @Rairai31 ,

 

If users are going through the navigation, then it is better to create a new application module, under change application menu, specify the link type, Table and View Name.

 

If view name is not working, then you can enter the sysparm_view=uat_change in arguments box.

 

By using interceptors: update your existing inceptor as below.

change_request.do?sys_id=-1&sysparm_query=type=normal&sysparm_view=uat_change&sysparm_view_forced=true

 

do you have the change type as UAT Type customized in your instance ?

 

Thanks,
Bhimashankar H

 

-------------------------------------------------------------------------------------------------
If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. Thanks!

Hi @Rairai31 ,

 

I hope you saw my reply. 


If my response points you in the right directions, please consider marking it as 'Helpful' & 'Correct'. It will help future readers as well having similar kind of questions and close the thread.

Thanks,
Bhimashankar H

Bhuvan
Kilo Patron

@Rairai31 

 

Can you share more details if it is not working in classic UI or Workspace ?

 

https://www.servicenow.com/community/developer-forum/no-option-to-switch-view-when-creating-new-reco...

 

If you have already used sysparm_view, it should work fine as it would enforce the view when creating the record. It might not be reflecting due to cache, clear the cache and try again using below steps.

 

Go to ServiceNow instance from browser and clear cache, clear all browser caches

 

https://<instance-name>.service-now.com/cache.do

 

Go to System Definition -> Scripts - Background and execute gs.invalidateCache();

Bhuvan_0-1756960956385.png

https://<instance-name>/now/nav/ui/classic/params/target/sys.scripts.do

 

Logout from browser session and login again. You can also try logging in via Incognito or InPrivate window of your browser.

 

If this helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan

@Rairai31 

 

Did you get a chance to review this ?

 

If my response helped to answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan