Display google map based on location details in service portal widget

Srilaxmi Dadig2
Kilo Explorer

Hi Team,

My Requirement is to display google map location with marker on service portal widget. URL contains sys_id of a location record. Location table contains address (or) latitude, longitude.

Can anyone please help me how this can be achieved.

 

1 REPLY 1

SatheeshKumar
Kilo Sage

similar widget is available OOB, you can tweak it slightly to match your requirement.

 

Service Portal > widgets > Ticket Location

find_real_file.png

 

 

you need a Google API key to make it working.(system property : google.maps.key

References:

https://developers.google.com/maps/documentation/javascript/adding-a-google-map 

https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/build/service-portal/concept/ticket-location-widget.html