The CreatorCon Call for Content is officially open! Get started here.

How do you create a URL for a new record and also set the view???

DrewW
Mega Sage

I apparently have a case of the stupids today because for the life of me I cannot get this URL to work properly. Every time I go to it I get a blank form with the default view and that is not what I want. I would like it to take me to a blank form using the osa_-_physical view...

cmdb_ci_network_adapter.do?sys_id=-1&sysparm_view=osa_-_physical&sysparm_query=active=true^u_osa_card_type=Physical

Anyone have any suggestions?

Drew

3 REPLIES 3

CapaJC
ServiceNow Employee
ServiceNow Employee

I ran a test changing a couple things from your example but keeping the idea the same. The following took me to the Self Service view of a new Incident form with Short description pre-populated as expected:
http://demo.service-now.com/incident.do?sys_id=-1&sysparm_view=ess&sysparm_query=active=true^short_description=heya

Navigating to the full frameset required escaping some characters, but this worked:
https://demo.service-now.com/nav_to.do?uri=incident.do%3Fsys_id=-1%26sysparm_view=ess%26sysparm_query=active=true^short_description=dude


DrewW
Mega Sage

Ok, well I am trying to do it using an Interceptor, do you think that will impact how it works?


DrewW
Mega Sage

Well, .... I just found a view rule that was causing my issue...

Thanks for the help.