"Map" to be displayed on Form

waseem5
Kilo Expert

Dear Community,

I have a requirement to show map on form. The URL is built and if this URL is entered in browser address bars opens up the website containing map.

Can host this URL in a smaller display are as a field in SNow form? For those familiar with BMC Remedy - something like a "Display Field" which show anything input to it from URLs to document link.

Thanks and regards

Waseem

1 ACCEPTED SOLUTION

coryseering
ServiceNow Employee
ServiceNow Employee

You would use a URL just like the one you'd use to link to the page:



https://wiki.servicenow.com/index.php?title=Using_Map_Pages#Linking_to_a_URL


3.1.2 Linking to a URL

You can also create a desktop module that links to a map page via a URL.


In the module record, select a Link type of URL (from Arguments:). This selection displays the Arguments field. Enter the sample a URL in this format:


map_page.do?sysparm_name=<map page name>

Note


Note: If the map page title has a space in it, replace the space with %20 for the correct syntax. For example, a map page called Critical Incidents becomes Critical%20Incidents%20 in a URL.

View solution in original post

6 REPLIES 6

coryseering
ServiceNow Employee
ServiceNow Employee

You would use a URL just like the one you'd use to link to the page:



https://wiki.servicenow.com/index.php?title=Using_Map_Pages#Linking_to_a_URL


3.1.2 Linking to a URL

You can also create a desktop module that links to a map page via a URL.


In the module record, select a Link type of URL (from Arguments:). This selection displays the Arguments field. Enter the sample a URL in this format:


map_page.do?sysparm_name=<map page name>

Note


Note: If the map page title has a space in it, replace the space with %20 for the correct syntax. For example, a map page called Critical Incidents becomes Critical%20Incidents%20 in a URL.

They made it even easier in Tokyo, you can build it from a Link Type of Map Page, and then from the reference field pick the page.

JeffreySiegel_0-1682075169705.png

 

When you wind up browsing to the page, it uses the sys_id, which you can build out directly if you wanted to as well... For Next Experience the syntax is:


https://<<Instance_Name>>.service-now.com/now/nav/ui/classic/params/target%24map_page_primary.do%3Fsysparm_sys_id%3D<<Sys_id>>

 

for Classic UI:
https://<<Instance_Name>>.service-now.com/nav_to.do?uri=/$map_page_primary.do?sysparm_sys_id=<<Sys_i...

 

or to load without the header you can use:

Next Experience:

https://<<Instance_Name>>.service-now.com/$map_page_primary.do?sysparm_sys_id=<<sys_id>> 

 

Classic UI:

https://<<Instance_Name>>.service-now.com/$map_page_primary.do?sysparm_sys_id=<<Sys_id>>