Report not populating User's location

MadelineA747953
Tera Contributor

Hello- New ServiceNow Platform Owner here!  We recently imported the location user attribute into our platform. When we run a report and add the location field, the user's location is returning as empty. 

2 ACCEPTED SOLUTIONS

Seems like you are trying to get data from Incident table and location column is emptry there, this location field is not auto populate for caller location.

 

We need to udpate the incident's location field with respective caller's location either manually or using some script when new incident created. 

 

E.g. you can edit the location value in any of Incident and then check the report, this will display the value.

 

 

-


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

Hi @MadelineA747953 ,

 

See the snip location information is different. Since one location is updated for incident and other location is caller Location. The caller location is available in the Incident form since we Dot walk the Caller field and bring the Location attribute of a caller in incident form.

 

RohitSingh_0-1743629153410.png

 

RohitSingh_1-1743629284976.png

 

Hope this help to distinguish between the two location fields. Use can use Dot Walk while creating report as well.

 

RohitSingh_2-1743629370643.png

If my response helped, please hit the Thumb Icon and accept the solution so that it benefits future readers.

 

Regards,
Rohit

 

 

 

View solution in original post

12 REPLIES 12

AshishKM
Kilo Patron
Kilo Patron

Hi @MadelineA747953,

Can you share the report configuration part, that how you are applying the dot walking path from User->Location table. 

  • If you shift this Location[+] field on right side, it will show the location value for users as configured. 
  • If you are looking for some other column from Location table then clik on hierarchy button above the ">" this will open the location table columns and you can select and shift to seleted side.

AshishKM_0-1743626560851.png

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

MadelineA747953
Tera Contributor

Thank you!  I followed your instructions and this resolved incidents being submitted on the classic view however, incidents being submitted through the Employee Center continues to show user location as empty.  Any thought on how to resolve this?

This can be resolve by adding one line code in record producer [on Incident table]

 

current.location = gs.getUser().getRecord().getValue('location');

 

AshishKM_0-1743707420125.png

 

Result:

AshishKM_1-1743707984668.png

 

Note: You need to check the record producer name which is used for creating incident from Employee Center Portal in your instance. 

 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution