Display google map based on location details in service portal widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2020 10:55 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2020 12:46 AM
similar widget is available OOB, you can tweak it slightly to match your requirement.
Service Portal > widgets > Ticket Location
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