<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3189114&amp;fmt=gif">

How to Create a Map Report in ServiceNow

9d56f4_ce25965c7b734d28a38d3153728de428~mv2

In this article, I’m going to show you how to create a map report in ServiceNow.

In this article you’ll learn:

  • What a map report is

  • How to create a map report

Map Reports are excellent to use on dashboards, as they allow you to easily visualize and pin records geographically on a map view.

9d56f4_8d80e60c23084e3ab9de3cc231b44f4a~mv2

Map Reports are commonly used for displaying data such as:

  • Incidents by Country

  • Assets by Country

  • Security Breaches by Country

  • And New Employees by City and State

The possibilities are truly endless with this type of reporting. Whatever your use case is, there’s most likely a way to visualize your data on a map report.

Map reports also allow you to drill into the map visualization when you’re wanting to go deeper into a location’s hierarchy. For example you may be looking at the United States, and you see a large amount of incidents being created in the state of California.

With the drill down functionality, you can drill into the state of California and see which cities the incidents are being created from. This type of functionality is great as it allows you to go from a 10,000 foot view, and then right into a detailed view.

Now that we’ve covered what a map reports are, let’s go into ServiceNow and create one.

Creating a Map Report

In today’s blog, we’re going to create a map report for purchase orders by location. This will allow our procurement manager to see all purchase orders across the globe, and display which countries they’re being placed for.

The first thing you’ll want to do is open up ServiceNow, and in the application navigator, type in “Map Sources”.

9d56f4_4bc0f4983d3d4048a4cbe0367140d9af~mv2

Under the “Administration” application, click on the “Map Sources” module. You’ll now see a list of map source records.

9d56f4_69ed82149af0463f921e0d9975b85ae1~mv2

Map sources are basically records that are used when generating a map report, which tell the map what records should be loaded and displayed. To create a new map source, click on the new button. A blank map source form will load.

9d56f4_4e7fecde765a44b3a1c85ff7eca18d4e~mv2

On the map source form, we have the following fields:

Field

 

Description

 

Name

 

The name which describes the map source.

 

Table

 

The table which the map source will use data from.

 

Field

 

This field displays the physical location of the individual who made the request.

 

Active

 

This is the date in which the request should be completed by.

 

In the first field “Name”, this is the name which describes this map source. In this field, I’m going to enter “Purchase Orders by Location”. In the next field “Table”, this is the table in which we’ll be building our map source data from. In this example I’m going to select the “proc_po” table for purchase order records.

9d56f4_78ecc1497eac4bdb8c99b65d3fc8099e~mv2

Now that we’ve selected the Purchase Order table, we have to select a field in which its values will be used to display on the map report. In this example I’m going to select the “Ship to Location” field, because this is where the purchase order location records are referenced.

Now click on the “Save” button to save this map source. Now that the map source record has been saved, you’ll notice we have a related list on the form for Map Sources.

9d56f4_0d69166c44994345a400098516aebf8d~mv2

This related list displays all of the child locations that are contained in the map source level hierarchy. Instead of creating the map source levels manually, we'll do this automatically by clicking on the “Generate map source levels” link that's located underneath the related links header.

You’ll now see this following information message:

9d56f4_0b3ce6d9917f401e8d9f8a33fb605f6f~mv2

This message confirms that the map source levels were automatically created for the data source, and we have 3 levels of location data available to use.

If we go back into the map source record and go down into each level that was created, you can see that we have a 3 level hierarchy that goes from country, to state, and then to city. This hierarchy is perfect for the report we’re going to build. Now that we’ve set up the map source and generated the hierarchy, let’s go and build the report.

In the application navigator, type in “Reports” and click on the “Create New” module located in the “Reports” application.

 9d56f4_b84c7303c73a47a9b6f1346c37133f46~mv2
 

In the first field “Report name”, we’re going to enter “Purchase Orders by Location”.

And in the “Source type” field we’re going to leave this as “Table”, since the records we’re looking to report on are stored in a table. And in the final field “Table”, I’m going to select the “proc_po” table as this is the table with our purchase orders record in it.

9d56f4_a00ca4f46445492d94d68ee14acb50aa~mv2

Now in this part of the report builder, we want to scroll down and select the “Map” chart type. Click on the next button.

Now on the “Configure” screen, we need to configure the map report. In the first field, “Aggregation”, we want to select the aggregation of the data. For this report we would like a count of purchase orders by location, so we’ll want to keep the “Count” option.

From the “Map this data” field, click on the drop down menu and you should see the “Purchase Orders by Location” map source that we previously created in this blog.

9d56f4_d2f8831b28d4443e9eb8395e0cd20ca3~mv2

And for the “Set map” field, I’m going to leave it as “World”, but if you wanted to focus the map on a specific country or state, you could do so by selecting that country or state. Now click on the “Next” button.

On this screen you can see that the map report has now been generated and you can see all of the purchase orders around the globe.

 9d56f4_b1701211adad431a87a122d24f0c56b5~mv2
 

You’ll notice that you can drill into the map to look at purchase orders in their respective country, state, and city. From here you can save the report, share it with others, and even add it to a new or existing dashboard.

Be on the lookout for more ServiceNow tips and tricks from GlideFast!


 

About GlideFast Consulting

GlideFast is a ServiceNow Elite Partner and professional services firm that provides tailored solutions and professional services for ServiceNow implementations, integrations, managed support services, application development, and training. Reach out to our team here.

Related Posts